Mercurial > emacs
comparison src/fileio.c @ 50212:e4c663d6815c
(Fexpand_file_name): Fix previous change.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Fri, 21 Mar 2003 05:40:53 +0000 |
parents | 2e56eaaf925b |
children | f72d2bd8118d |
comparison
equal
deleted
inserted
replaced
50211:64a900db8d32 | 50212:e4c663d6815c |
---|---|
1297 #endif | 1297 #endif |
1298 /* drive must be set, so this is okay */ | 1298 /* drive must be set, so this is okay */ |
1299 if (strcmp (nm - 2, SDATA (name)) != 0) | 1299 if (strcmp (nm - 2, SDATA (name)) != 0) |
1300 { | 1300 { |
1301 name | 1301 name |
1302 = make_specified_string (nm, -1, strlen (nm), | 1302 = make_specified_string (nm - 2, -1, p - nm + 2, |
1303 STRING_MULTIBYTE (name)); | 1303 STRING_MULTIBYTE (name)); |
1304 SSET (name, 0, DRIVE_LETTER (drive)); | 1304 SSET (name, 0, DRIVE_LETTER (drive)); |
1305 SSET (name, 1, ':'); | 1305 SSET (name, 1, ':'); |
1306 } | 1306 } |
1307 return name; | 1307 return name; |