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]; }