HCoop
/
bpt
/
emacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
(w32_get_long_filename): Handle root dirs correctly.
[bpt/emacs.git]
/
src
/
w32.c
diff --git
a/src/w32.c
b/src/w32.c
index
46d9505
..
d50cff5
100644
(file)
--- a/
src/w32.c
+++ b/
src/w32.c
@@
-503,9
+503,10
@@
w32_get_long_filename (char * name, char * buf, int size)
len = parse_root (full, &p);
memcpy (o, full, len);
o += len;
+ *o = '\0';
size -= len;
- do
+ while (p != NULL && *p)
{
q = p;
p = strchr (q, '\\');
@@
-528,7
+529,6
@@
w32_get_long_filename (char * name, char * buf, int size)
else
return FALSE;
}
- while (p != NULL && *p);
return TRUE;
}