diff options
| author | Juanma Barranquero | 2002-07-19 21:26:14 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2002-07-19 21:26:14 +0000 |
| commit | 8cfd6446cbc57bee699a788308281683a9175344 (patch) | |
| tree | 2b06329558aabccd7f54acd12d29a7be3743e82a /src | |
| parent | ab380f51c115821e380cedaa32c85d52c823a840 (diff) | |
| download | emacs-8cfd6446cbc57bee699a788308281683a9175344.tar.gz emacs-8cfd6446cbc57bee699a788308281683a9175344.zip | |
(file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 1 | ||||
| -rw-r--r-- | src/fileio.c | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 06bb7fdc3ba..5a793488602 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -37,6 +37,7 @@ | |||
| 37 | 2002-07-19 Juanma Barranquero <lektu@terra.es> | 37 | 2002-07-19 Juanma Barranquero <lektu@terra.es> |
| 38 | 38 | ||
| 39 | * fileio.c (Ffile_name_as_directory): Fix argument name in docstring. | 39 | * fileio.c (Ffile_name_as_directory): Fix argument name in docstring. |
| 40 | (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP. | ||
| 40 | 41 | ||
| 41 | * xdisp.c (syms_of_xdisp): Remove redundant deprecation info. | 42 | * xdisp.c (syms_of_xdisp): Remove redundant deprecation info. |
| 42 | 43 | ||
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) | |||
| 602 | /* For Unix syntax, Append a slash if necessary */ | 602 | /* For Unix syntax, Append a slash if necessary */ |
| 603 | if (!IS_DIRECTORY_SEP (out[size])) | 603 | if (!IS_DIRECTORY_SEP (out[size])) |
| 604 | { | 604 | { |
| 605 | out[size + 1] = DIRECTORY_SEP; | 605 | /* Cannot use DIRECTORY_SEP, which could have any value */ |
| 606 | out[size + 1] = '/'; | ||
| 606 | out[size + 2] = '\0'; | 607 | out[size + 2] = '\0'; |
| 607 | } | 608 | } |
| 608 | #ifdef DOS_NT | 609 | #ifdef DOS_NT |