notaz.gp2x.de
/
pcsx_rearmed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22bbabf
)
frontend: path handling fix
author
notaz
<notasas@gmail.com>
Mon, 28 Jan 2013 00:48:01 +0000
(
02:48
+0200)
committer
notaz
<notasas@gmail.com>
Mon, 28 Jan 2013 00:48:01 +0000
(
02:48
+0200)
frontend/menu.c
patch
|
blob
|
blame
|
history
diff --git
a/frontend/menu.c
b/frontend/menu.c
index
3a6ae9c
..
9ca5f95
100644
(file)
--- a/
frontend/menu.c
+++ b/
frontend/menu.c
@@
-251,7
+251,9
@@
static int optional_cdimg_filter(struct dirent **namelist, int count,
p = strrchr(buf2, '/');
if (p == NULL)
p = strrchr(buf2, '\\');
- if (p == NULL)
+ if (p != NULL)
+ p++;
+ else
p = buf2;
snprintf(buf, sizeof(buf), "%s/%s", basedir, p);