dougt%netscape.com 1999-04-23 06:32:40 +00:00
Родитель 6ee7c51127
Коммит a23ed84234
2 изменённых файлов: 10 добавлений и 6 удалений

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

@ -1180,9 +1180,11 @@ nsprPath::operator const char*()
if(resultPath[1] == '|')
resultPath[1] = ':';
/* Remove the ending seperator */
if(resultPath[PL_strlen(resultPath) - 1 ] == '/')
resultPath[PL_strlen(resultPath) - 1 ] = '\0';
/* Remove the ending seperator only if it is not the last seperator*/
int len = PL_strlen(resultPath);
if(resultPath[len - 1 ] == '/')
if(resultPath[len - 2 ] != ':')
resultPath[len - 1 ] = '\0';
return resultPath;

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

@ -1180,9 +1180,11 @@ nsprPath::operator const char*()
if(resultPath[1] == '|')
resultPath[1] = ':';
/* Remove the ending seperator */
if(resultPath[PL_strlen(resultPath) - 1 ] == '/')
resultPath[PL_strlen(resultPath) - 1 ] = '\0';
/* Remove the ending seperator only if it is not the last seperator*/
int len = PL_strlen(resultPath);
if(resultPath[len - 1 ] == '/')
if(resultPath[len - 2 ] != ':')
resultPath[len - 1 ] = '\0';
return resultPath;