Module Name:    src
Committed By:   martin
Date:           Mon Feb 11 20:03:28 UTC 2019

Modified Files:
        src/usr.sbin/sysinst: partman.c

Log Message:
Remove unconditional truncation - it confuses gcc


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/usr.sbin/sysinst/partman.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/sysinst/partman.c
diff -u src/usr.sbin/sysinst/partman.c:1.27 src/usr.sbin/sysinst/partman.c:1.28
--- src/usr.sbin/sysinst/partman.c:1.27	Mon Feb 11 19:58:22 2019
+++ src/usr.sbin/sysinst/partman.c	Mon Feb 11 20:03:28 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: partman.c,v 1.27 2019/02/11 19:58:22 martin Exp $ */
+/*	$NetBSD: partman.c,v 1.28 2019/02/11 20:03:28 martin Exp $ */
 
 /*
  * Copyright 2012 Eugene Lozovoy
@@ -1934,8 +1934,6 @@ pm_getrefdev(pm_devs_t *pm_cur)
 					pm_cur->diskdev_descr[
 					    sizeof(pm_cur->diskdev_descr)-1]
 					    = 0;
-				pm_cur->diskdev_descr[
-				    sizeof(pm_cur->diskdev_descr)-1] = 0;
 				break;
 			}
 	} else if (! strncmp(pm_cur->diskdev, "raid", 4)) {

Reply via email to