[MPlayer-cvslog] r32632 - trunk/path.c

cboesch subversion at mplayerhq.hu
Wed Nov 17 22:14:56 CET 2010


Author: cboesch
Date: Wed Nov 17 22:14:55 2010
New Revision: 32632

Log:
Handle correctly paths with mixed '/' and '\' in it.

Patch by Yuriy Kaminskiy (yumkam at mail ru)

Modified:
   trunk/path.c

Modified: trunk/path.c
==============================================================================
--- trunk/path.c	Wed Nov 17 17:33:48 2010	(r32631)
+++ trunk/path.c	Wed Nov 17 22:14:55 2010	(r32632)
@@ -201,7 +201,7 @@ const char *mp_basename(const char *path
 #if HAVE_DOS_PATHS
     s = strrchr(path, '\\');
     if (s)
-        return s + 1;
+        path = s + 1;
 #endif
     s = strrchr(path, '/');
     return s ? s + 1 : path;


More information about the MPlayer-cvslog mailing list