realpath fixes

This commit is contained in:
Ron Pedde 2006-03-07 07:03:00 +00:00
parent 5917ca0cda
commit a6675697be
1 changed files with 3 additions and 0 deletions

View File

@ -434,6 +434,9 @@ char *os_realpath(const char *pathname, char *resolved_path) {
ptr++; ptr++;
} }
while(strlen(resolved_path) && (resolved_path[strlen(resolved_path)-1] == '\\'))
resolved_path[strlen(resolved_path)-1] = '\0';
return &resolved_path[0]; return &resolved_path[0];
} }