1
1

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.
Этот коммит содержится в:
Miguel de Icaza 1999-01-22 02:23:43 +00:00
родитель 7913e20514
Коммит 07a0ea5305
2 изменённых файлов: 8 добавлений и 3 удалений

Просмотреть файл

@ -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>
* undelfs.c: Found one more unconverted realloc() call.

Просмотреть файл

@ -157,10 +157,10 @@ done:
char*
append_path_sep (char *path)
{
int i = strlen(path) - 1;
int i = strlen (path);
if(path[i] == PATH_SEP)
return g_strndup(path, i);
if (path[i - 1] == PATH_SEP)
return g_strndup (path, i);
else
return copy_strings (path, PATH_SEP_STR, NULL);
}