mirror of
https://gitea.psi.ch/ELOG/mxml.git
synced 2026-09-09 01:23:22 +00:00
bug fix.
This commit is contained in:
parent
7abaa9daeb
commit
83e8ff05be
4
mxml.c
4
mxml.c
@ -2090,7 +2090,7 @@ char* mxml_dirname(char* path)
|
|||||||
pv = strrchr (path, ':');
|
pv = strrchr (path, ':');
|
||||||
if( pv > p )
|
if( pv > p )
|
||||||
p = pv;
|
p = pv;
|
||||||
p = strrchr (path, '\\');
|
pv = strrchr (path, '\\');
|
||||||
if( pv > p )
|
if( pv > p )
|
||||||
p = pv;
|
p = pv;
|
||||||
#endif
|
#endif
|
||||||
@ -2107,7 +2107,7 @@ char* mxml_dirname(char* path)
|
|||||||
newpath = (char *) malloc(2);
|
newpath = (char *) malloc(2);
|
||||||
if (newpath == 0)
|
if (newpath == 0)
|
||||||
return NULL;
|
return NULL;
|
||||||
newpath[0] = '/';
|
newpath[0] = *p;
|
||||||
newpath[1] = 0;
|
newpath[1] = 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user