Commit 7cede65f authored by D-AIRY's avatar D-AIRY

fixed dirname()

parent 2a6e6705
......@@ -92,7 +92,7 @@ inline const char * dirname(char * str)
char * pos = str, *ret = str;
while(*str)
{
if(*str == '/' || *str == '\\')
if((*str == '/' || *str == '\\') && *(str + 1))
{
pos = str + 1;
}
......
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