changeset 32545:25de211794e8

Handle correctly paths with mixed '/' and '\' in it. Patch by Yuriy Kaminskiy (yumkam at mail ru)
author cboesch
date Wed, 17 Nov 2010 21:14:55 +0000
parents 9d5d8c799869
children e21aa887e9df
files path.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/path.c	Wed Nov 17 16:33:48 2010 +0000
+++ b/path.c	Wed Nov 17 21:14:55 2010 +0000
@@ -201,7 +201,7 @@
 #if HAVE_DOS_PATHS
     s = strrchr(path, '\\');
     if (s)
-        return s + 1;
+        path = s + 1;
 #endif
     s = strrchr(path, '/');
     return s ? s + 1 : path;