diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/fileio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c index a05dbd5f221..6560f28bb70 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -1251,7 +1251,7 @@ See also the function `substitute-in-file-name'.") | |||
| 1251 | /* Get rid of any slash at the end of newdir, unless newdir is | 1251 | /* Get rid of any slash at the end of newdir, unless newdir is |
| 1252 | just // (an incomplete UNC name). */ | 1252 | just // (an incomplete UNC name). */ |
| 1253 | length = strlen (newdir); | 1253 | length = strlen (newdir); |
| 1254 | if (IS_DIRECTORY_SEP (newdir[length - 1]) | 1254 | if (length > 0 && IS_DIRECTORY_SEP (newdir[length - 1]) |
| 1255 | #ifdef WINDOWSNT | 1255 | #ifdef WINDOWSNT |
| 1256 | && !(length == 2 && IS_DIRECTORY_SEP (newdir[0])) | 1256 | && !(length == 2 && IS_DIRECTORY_SEP (newdir[0])) |
| 1257 | #endif | 1257 | #endif |