[Midnightbsd-cvs] src [11999] trunk/usr.sbin/bsdinstall/partedit/gpart_ops.c: oops. fix the length for the comparison

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sun Aug 12 10:00:35 EDT 2018


Revision: 11999
          http://svnweb.midnightbsd.org/src/?rev=11999
Author:   laffer1
Date:     2018-08-12 10:00:35 -0400 (Sun, 12 Aug 2018)
Log Message:
-----------
oops. fix the length for the comparison

Modified Paths:
--------------
    trunk/usr.sbin/bsdinstall/partedit/gpart_ops.c

Modified: trunk/usr.sbin/bsdinstall/partedit/gpart_ops.c
===================================================================
--- trunk/usr.sbin/bsdinstall/partedit/gpart_ops.c	2018-08-12 13:48:52 UTC (rev 11998)
+++ trunk/usr.sbin/bsdinstall/partedit/gpart_ops.c	2018-08-12 14:00:35 UTC (rev 11999)
@@ -732,8 +732,8 @@
 		}
 		md->fstab->fs_file = strdup(mountpoint);
 		/* Get VFS from text after mnbsd-, if possible */
-		if (strncmp("mnbsd-", type, 8) == 0)
-			md->fstab->fs_vfstype = strdup(&type[8]);
+		if (strncmp("mnbsd-", type, 6) == 0)
+			md->fstab->fs_vfstype = strdup(&type[6]);
 		else if (strcmp("fat32", type) == 0 || strcmp("efi", type) == 0)
 			md->fstab->fs_vfstype = strdup("msdosfs");
 		else



More information about the Midnightbsd-cvs mailing list