Module Name:    src
Committed By:   dyoung
Date:           Thu Jul  1 16:12:23 UTC 2010

Modified Files:
        src/sbin/ifconfig: util.c

Log Message:
Change a > to a >= to avoid writing to the character after the end of
the buffer passed to get_string().


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sbin/ifconfig/util.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/ifconfig/util.c
diff -u src/sbin/ifconfig/util.c:1.13 src/sbin/ifconfig/util.c:1.14
--- src/sbin/ifconfig/util.c:1.13	Fri Sep 11 22:06:29 2009
+++ src/sbin/ifconfig/util.c	Thu Jul  1 16:12:23 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: util.c,v 1.13 2009/09/11 22:06:29 dyoung Exp $	*/
+/*	$NetBSD: util.c,v 1.14 2010/07/01 16:12:23 dyoung Exp $	*/
 
 /*-
  * Copyright (c) 2008 David Young.  All rights reserved.
@@ -27,7 +27,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: util.c,v 1.13 2009/09/11 22:06:29 dyoung Exp $");
+__RCSID("$NetBSD: util.c,v 1.14 2010/07/01 16:12:23 dyoung Exp $");
 #endif /* not lint */
 
 #include <ctype.h>
@@ -103,7 +103,7 @@
 				return NULL;
 			}
 		}
-		if (p > buf + len) {
+		if (p >= buf + len) {
 			if (hexstr)
 				warnx("hexadecimal digits too long");
 			else

Reply via email to