1999-01-21 Federico Mena Quintero <federico@nuclecu.unam.mx>
* utilvfs.c (append_path_sep): Fixed, it was broken for paths which already have a / at the end.
Этот коммит содержится в:
родитель
7913e20514
Коммит
07a0ea5305
@ -1,3 +1,8 @@
|
|||||||
|
1999-01-21 Federico Mena Quintero <federico@nuclecu.unam.mx>
|
||||||
|
|
||||||
|
* utilvfs.c (append_path_sep): Fixed, it was broken for paths
|
||||||
|
which already have a / at the end.
|
||||||
|
|
||||||
Fri Jan 22 01:41:25 1999 Timur I. Bakeyev <mc@bat.ru>
|
Fri Jan 22 01:41:25 1999 Timur I. Bakeyev <mc@bat.ru>
|
||||||
|
|
||||||
* undelfs.c: Found one more unconverted realloc() call.
|
* undelfs.c: Found one more unconverted realloc() call.
|
||||||
|
@ -157,10 +157,10 @@ done:
|
|||||||
char*
|
char*
|
||||||
append_path_sep (char *path)
|
append_path_sep (char *path)
|
||||||
{
|
{
|
||||||
int i = strlen(path) - 1;
|
int i = strlen (path);
|
||||||
|
|
||||||
if(path[i] == PATH_SEP)
|
if (path[i - 1] == PATH_SEP)
|
||||||
return g_strndup(path, i);
|
return g_strndup (path, i);
|
||||||
else
|
else
|
||||||
return copy_strings (path, PATH_SEP_STR, NULL);
|
return copy_strings (path, PATH_SEP_STR, NULL);
|
||||||
}
|
}
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user