forked from KolibriOS/kolibrios
newlib: fixed incorrect work with relative path
(previously /sys/open.c buildpath added an extra slash after the current working directory) git-svn-id: svn://kolibrios.org@9346 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
5e64693dd2
commit
603b599e0e
@ -78,9 +78,11 @@ void buildpath(char *buf, const char* file)
|
|||||||
if (*file == 0)
|
if (*file == 0)
|
||||||
break;
|
break;
|
||||||
++file;
|
++file;
|
||||||
continue;
|
//continue;
|
||||||
|
goto __do_until_slash;
|
||||||
}
|
}
|
||||||
*ptr++ = '/';
|
*ptr++ = '/';
|
||||||
|
__do_until_slash:
|
||||||
if (*file == '/')
|
if (*file == '/')
|
||||||
++file;
|
++file;
|
||||||
while (*file && *file!='/')
|
while (*file && *file!='/')
|
||||||
|
Loading…
Reference in New Issue
Block a user