This commit is contained in:
Ryu Sawada
2005-10-08 09:37:24 +00:00
parent 7abaa9daeb
commit 83e8ff05be
+2 -2
View File
@@ -2090,7 +2090,7 @@ char* mxml_dirname(char* path)
pv = strrchr (path, ':');
if( pv > p )
p = pv;
p = strrchr (path, '\\');
pv = strrchr (path, '\\');
if( pv > p )
p = pv;
#endif
@@ -2107,7 +2107,7 @@ char* mxml_dirname(char* path)
newpath = (char *) malloc(2);
if (newpath == 0)
return NULL;
newpath[0] = '/';
newpath[0] = *p;
newpath[1] = 0;
}
else