diff options
| author | Kenichi Handa | 2003-03-21 05:45:23 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2003-03-21 05:45:23 +0000 |
| commit | 3f817c73666be2ee71e83cc50b5e6ff01ad8b1c9 (patch) | |
| tree | 9141e9da0b2067c0a3ee04d9de891ce058526cb9 | |
| parent | f0ec17115f58f2f4d77059515c132ddfc3d7b233 (diff) | |
| download | emacs-3f817c73666be2ee71e83cc50b5e6ff01ad8b1c9.tar.gz emacs-3f817c73666be2ee71e83cc50b5e6ff01ad8b1c9.zip | |
(Fexpand_file_name): Fix previous change.
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/fileio.c | 16 |
2 files changed, 12 insertions, 8 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 607cc02fa25..3c67529536c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2003-03-21 Kenichi Handa <handa@etlken2> | ||
| 2 | |||
| 3 | * fileio.c (Fexpand_file_name): Fix previous change. | ||
| 4 | |||
| 1 | 2003-03-19 Kenichi Handa <handa@etlken2> | 5 | 2003-03-19 Kenichi Handa <handa@etlken2> |
| 2 | 6 | ||
| 3 | * fileio.c (Ffile_name_directory): Reconstruct file name by | 7 | * fileio.c (Ffile_name_directory): Reconstruct file name by |
diff --git a/src/fileio.c b/src/fileio.c index a75a0e22b75..4f85aa1d6ad 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -1289,20 +1289,20 @@ See also the function `substitute-in-file-name'. */) | |||
| 1289 | if (IS_DIRECTORY_SEP (nm[1])) | 1289 | if (IS_DIRECTORY_SEP (nm[1])) |
| 1290 | { | 1290 | { |
| 1291 | if (strcmp (nm, SDATA (name)) != 0) | 1291 | if (strcmp (nm, SDATA (name)) != 0) |
| 1292 | name | 1292 | name = make_specified_string (nm, -1, strlen (nm), |
| 1293 | = make_specified_string (nm, -1, strlen (nm), | 1293 | STRING_MULTIBYTE (name)); |
| 1294 | STRING_MULTIBYTE (name)); | ||
| 1295 | } | 1294 | } |
| 1296 | else | 1295 | else |
| 1297 | #endif | 1296 | #endif |
| 1298 | /* drive must be set, so this is okay */ | 1297 | /* drive must be set, so this is okay */ |
| 1299 | if (strcmp (nm - 2, SDATA (name)) != 0) | 1298 | if (strcmp (nm - 2, SDATA (name)) != 0) |
| 1300 | { | 1299 | { |
| 1301 | name | 1300 | char temp[] = " :"; |
| 1302 | = make_specified_string (nm, -1, strlen (nm), | 1301 | |
| 1303 | STRING_MULTIBYTE (name)); | 1302 | name = make_specified_string (nm, -1, p - nm, |
| 1304 | SSET (name, 0, DRIVE_LETTER (drive)); | 1303 | STRING_MULTIBYTE (name)); |
| 1305 | SSET (name, 1, ':'); | 1304 | temp[0] = DRIVE_LETTER (drive); |
| 1305 | name = concat2 (build_string (temp), name); | ||
| 1306 | } | 1306 | } |
| 1307 | return name; | 1307 | return name; |
| 1308 | #else /* not DOS_NT */ | 1308 | #else /* not DOS_NT */ |