changeset 32555:8a556b3aff79

Handle ':' on systems with DOS paths: it allows paths like C:foo.avi.
author cboesch
date Sun, 21 Nov 2010 19:46:37 +0000
parents 8fffd26d06ae
children 34215c3e6e10
files path.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/path.c	Sun Nov 21 17:07:34 2010 +0000
+++ b/path.c	Sun Nov 21 19:46:37 2010 +0000
@@ -202,6 +202,9 @@
     s = strrchr(path, '\\');
     if (s)
         path = s + 1;
+    s = strrchr(path, ':');
+    if (s)
+        path = s + 1;
 #endif
     s = strrchr(path, '/');
     return s ? s + 1 : path;