Mercurial > emacs
changeset 23858:6bb3dc7f1b48
(w32_get_long_filename): Handle root dirs correctly.
author | Geoff Voelker <voelker@cs.washington.edu> |
---|---|
date | Thu, 10 Dec 1998 05:43:07 +0000 |
parents | 5ad15fde58a9 |
children | b2aa39f6d923 |
files | src/w32.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/w32.c Thu Dec 10 04:25:07 1998 +0000 +++ b/src/w32.c Thu Dec 10 05:43:07 1998 +0000 @@ -503,9 +503,10 @@ 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 @@ else return FALSE; } - while (p != NULL && *p); return TRUE; }