From a6675697be1e5047b066ae70fb6df7190501225c Mon Sep 17 00:00:00 2001 From: Ron Pedde Date: Tue, 7 Mar 2006 07:03:00 +0000 Subject: [PATCH] realpath fixes --- src/os-win32.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/os-win32.c b/src/os-win32.c index 6c9b1e96..d31ceb02 100644 --- a/src/os-win32.c +++ b/src/os-win32.c @@ -434,6 +434,9 @@ char *os_realpath(const char *pathname, char *resolved_path) { ptr++; } + while(strlen(resolved_path) && (resolved_path[strlen(resolved_path)-1] == '\\')) + resolved_path[strlen(resolved_path)-1] = '\0'; + return &resolved_path[0]; }