projects
/
neverball
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix path separator finding in Windows
[neverball]
/
share
/
common.c
diff --git
a/share/common.c
b/share/common.c
index
d5dcdc7
..
10d5b76
100644
(file)
--- a/
share/common.c
+++ b/
share/common.c
@@
-228,7
+228,7
@@
static const char *path_last_sep(const char *path)
{
const char *tmp;
- if ((tmp = strrchr(sep, '\\')))
+ if ((tmp = strrchr(path, '\\')) && sep < tmp)
sep = tmp;
}
#endif