From 7af605d1d42b2760799e816b7b25efe90a07d269 Mon Sep 17 00:00:00 2001 From: Tomáš Chvátal Date: Wed, 9 Dec 2009 21:50:27 +0100 Subject: Add most parts of Timoo's windows code, or use different logic to get to the same results. --- src/base/arenaFile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/base/arenaFile.c') diff --git a/src/base/arenaFile.c b/src/base/arenaFile.c index e5a17ae..c494e1f 100644 --- a/src/base/arenaFile.c +++ b/src/base/arenaFile.c @@ -370,10 +370,10 @@ static void load_arenaFromDirector(char *director) if (strstr(line, ".zip") != NULL && strstr(line, "~") == NULL) { char path[STR_PATH_SIZE]; - if (director[strlen(director)-1] == '/') { + if (director[strlen(director)-1] == PATH_SEPARATOR) { sprintf(path, "%s%s", director, line); } else { - sprintf(path, "%s/%s", director, line); + sprintf(path, "%s%s%s", director, PATH_SEPARATOR, line); } debug("Loading arena [%s]", line); -- cgit v1.2.3