Module Name:    src
Committed By:   jnemeth
Date:           Wed Dec  2 11:20:34 UTC 2015

Modified Files:
        src/sbin/gpt: add.c

Log Message:
hrmm...

i386devel: {245} ./gpt add -b 1000 -s 1000 disk
Segmentation fault (core dumped)

Where's my flyswatter?   .......zzzzzzzap


To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 src/sbin/gpt/add.c

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

Modified files:

Index: src/sbin/gpt/add.c
diff -u src/sbin/gpt/add.c:1.36 src/sbin/gpt/add.c:1.37
--- src/sbin/gpt/add.c:1.36	Wed Dec  2 04:07:11 2015
+++ src/sbin/gpt/add.c	Wed Dec  2 11:20:34 2015
@@ -33,7 +33,7 @@
 __FBSDID("$FreeBSD: src/sbin/gpt/add.c,v 1.14 2006/06/22 22:05:28 marcel Exp $");
 #endif
 #ifdef __RCSID
-__RCSID("$NetBSD: add.c,v 1.36 2015/12/02 04:07:11 christos Exp $");
+__RCSID("$NetBSD: add.c,v 1.37 2015/12/02 11:20:34 jnemeth Exp $");
 #endif
 
 #include <sys/types.h>
@@ -158,7 +158,7 @@ cmd_add(gpt_t gpt, int argc, char *argv[
 {
 	int ch;
 
-	while ((ch = getopt(argc, argv, GPT_AIS "bl:t:")) != -1) {
+	while ((ch = getopt(argc, argv, GPT_AIS "b:l:t:")) != -1) {
 		switch(ch) {
 		case 'b':
 			if (gpt_human_get(&block) == -1)

Reply via email to