Unix FAT inst: fix the order of stitched strings. syslinux-3.36-pre3
authorH. Peter Anvin <hpa@zytor.com>
Sat, 3 Feb 2007 20:42:48 +0000 (12:42 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Sat, 3 Feb 2007 20:42:48 +0000 (12:42 -0800)
unix/syslinux.c

index d31e01f..aa6a003 100644 (file)
@@ -464,7 +464,7 @@ int main(int argc, char *argv[])
     goto umount;
   }
   sprintf(ldlinux_name, "%s%s%s//ldlinux.sys",
-         subdir ? "//" : "", subdir ? subdir : "", mntpath);
+         mntpath, subdir ? "//" : "", subdir ? subdir : "");
 
   if ((fd = open(ldlinux_name, O_RDONLY)) >= 0) {
     uint32_t zero_attr = 0;