comparison path.c @ 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 8fffd26d06ae
comparison
equal deleted inserted replaced
32544:9d5d8c799869 32545:25de211794e8
199 char *s; 199 char *s;
200 200
201 #if HAVE_DOS_PATHS 201 #if HAVE_DOS_PATHS
202 s = strrchr(path, '\\'); 202 s = strrchr(path, '\\');
203 if (s) 203 if (s)
204 return s + 1; 204 path = s + 1;
205 #endif 205 #endif
206 s = strrchr(path, '/'); 206 s = strrchr(path, '/');
207 return s ? s + 1 : path; 207 return s ? s + 1 : path;
208 } 208 }