(file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
authorJuanma Barranquero <lekktu@gmail.com>
Fri, 19 Jul 2002 21:26:14 +0000 (21:26 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Fri, 19 Jul 2002 21:26:14 +0000 (21:26 +0000)
src/ChangeLog
src/fileio.c

index 06bb7fd..5a79348 100644 (file)
@@ -37,6 +37,7 @@
 2002-07-19  Juanma Barranquero  <lektu@terra.es>
 
        * fileio.c (Ffile_name_as_directory): Fix argument name in docstring.
+       (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
 
        * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
 
index 74e97fc..f764bff 100644 (file)
@@ -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