aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/fileio.c16
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 @@
12003-03-21 Kenichi Handa <handa@etlken2>
2
3 * fileio.c (Fexpand_file_name): Fix previous change.
4
12003-03-19 Kenichi Handa <handa@etlken2> 52003-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 */