mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-11-23 01:11:19 +03:00
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)
|
||||
break;
|
||||
++file;
|
||||
continue;
|
||||
//continue;
|
||||
goto __do_until_slash;
|
||||
}
|
||||
*ptr++ = '/';
|
||||
__do_until_slash:
|
||||
if (*file == '/')
|
||||
++file;
|
||||
while (*file && *file!='/')
|
||||
|
Loading…
Reference in New Issue
Block a user