changeset 50213:f72d2bd8118d

(Fexpand_file_name): Fix previous change.
author Kenichi Handa <handa@m17n.org>
date Fri, 21 Mar 2003 05:44:55 +0000
parents e4c663d6815c
children 483cf95c8272
files src/fileio.c
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/fileio.c	Fri Mar 21 05:40:53 2003 +0000
+++ b/src/fileio.c	Fri Mar 21 05:44:55 2003 +0000
@@ -1289,20 +1289,20 @@
 	  if (IS_DIRECTORY_SEP (nm[1]))
 	    {
 	      if (strcmp (nm, SDATA (name)) != 0)
-		name
-		  = make_specified_string (nm, -1, strlen (nm),
-					   STRING_MULTIBYTE (name));
+		name = make_specified_string (nm, -1, strlen (nm),
+					      STRING_MULTIBYTE (name));
 	    }
 	  else
 #endif
 	  /* drive must be set, so this is okay */
 	  if (strcmp (nm - 2, SDATA (name)) != 0)
 	    {
-	      name
-		= make_specified_string (nm - 2, -1, p - nm + 2,
-					 STRING_MULTIBYTE (name));
-	      SSET (name, 0, DRIVE_LETTER (drive));
-	      SSET (name, 1, ':');
+	      char temp[] = " :";
+
+	      name = make_specified_string (nm, -1, p - nm,
+					    STRING_MULTIBYTE (name));
+	      temp[0] = DRIVE_LETTER (drive);
+	      name = concat2 (build_string (temp), name);
 	    }
 	  return name;
 #else /* not DOS_NT */