Commit b6b64281 authored by rswindell's avatar rswindell
Browse files

Bugfix: getfname() would return a pointer to a sub-directory (instead of the

filename) if passed a path that included both foward and back-slashes.
parent a562d432
......@@ -83,11 +83,13 @@
/****************************************************************************/
char* DLLCALL getfname(const char* path)
{
char *fname;
char* fname;
char* bslash;
fname=strrchr(path,'/');
if(fname==NULL)
fname=strrchr(path,'\\');
bslash=strrchr(path,'\\');
if(bslash>fname)
fname=bslash;
if(fname!=NULL)
fname++;
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment