summaryrefslogtreecommitdiff
path: root/src/fileio.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fileio.c')
-rw-r--r--src/fileio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 26b2ebdeee5..498d2bb192b 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -1545,6 +1545,7 @@ See also the function `substitute-in-file-name'. */)
#ifdef WINDOWSNT
if (IS_DIRECTORY_SEP (newdir[0]) && IS_DIRECTORY_SEP (newdir[1]))
{
+ unsigned char *p;
newdir = strcpy (alloca (strlen (newdir) + 1), newdir);
p = newdir + 2;
while (*p && !IS_DIRECTORY_SEP (*p)) p++;