From d11e2ddbde2f1936c997ab15429d6a4c3b56c307 Mon Sep 17 00:00:00 2001 From: Juanma Barranquero Date: Mon, 22 Jul 2002 07:29:23 +0000 Subject: [PATCH] (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP. --- src/ChangeLog | 4 ++++ src/fileio.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index c53a9ed5c68..db7f751482b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2002-07-22 Juanma Barranquero + + * fileio.c (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP. + 2002-07-19 Juanma Barranquero * fileio.c (Ffile_name_as_directory): Fix argument name in docstring. diff --git a/src/fileio.c b/src/fileio.c index 08ca8d8eab4..6326f70ed33 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -591,7 +591,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 -- 2.39.5