From: parasti Date: Mon, 5 Jun 2006 14:59:46 +0000 (+0000) Subject: Fix filling in demo name on Windows. The last directory delimiter will always X-Git-Tag: fremantle/1.5.5-2~2115 X-Git-Url: http://vcs.maemo.org/git/?a=commitdiff_plain;h=dfd9b9ffa281c60c96c20dd6344aad80b4e21aca;p=neverball Fix filling in demo name on Windows. The last directory delimiter will always be a "/", cause that's what config_file() puts there. git-svn-id: https://s.snth.net/svn/neverball/trunk@430 78b8d119-cf0a-0410-b17c-f493084dd1d7 --- diff --git a/ball/demo.c b/ball/demo.c index d906a23..519fe69 100644 --- a/ball/demo.c +++ b/ball/demo.c @@ -103,11 +103,7 @@ FILE *demo_header_read(const char *filename, struct demo *d) strncpy(d->filename, filename, PATHMAX); /* Remove the directory delimiter */ -#ifdef _WIN32 - basename = strrchr(filename, '\\'); -#else basename = strrchr(filename, '/'); -#endif if (basename != NULL) strncpy(buf, basename + 1, MAXSTR);