diff options
Diffstat (limited to 'src/fileio.c')
-rw-r--r-- | src/fileio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c index 74e97fc5dc7..f764bff2200 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -602,7 +602,8 @@ file_name_as_directory (out, in) /* For Unix syntax, Append a slash if necessary */ if (!IS_DIRECTORY_SEP (out[size])) { - out[size + 1] = DIRECTORY_SEP; + /* Cannot use DIRECTORY_SEP, which could have any value */ + out[size + 1] = '/'; out[size + 2] = '\0'; } #ifdef DOS_NT |