Module Name:    src
Committed By:   riz
Date:           Tue Dec 11 04:26:26 UTC 2012

Modified Files:
        src/lib/libterminfo [netbsd-6]: tparm.c

Log Message:
Pull up following revision(s) (requested by msaitoh in ticket #734):
        lib/libterminfo/tparm.c: revision 1.9
Fix off by one error.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.7.4.1 src/lib/libterminfo/tparm.c

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

Modified files:

Index: src/lib/libterminfo/tparm.c
diff -u src/lib/libterminfo/tparm.c:1.7 src/lib/libterminfo/tparm.c:1.7.4.1
--- src/lib/libterminfo/tparm.c:1.7	Mon Oct  3 20:13:48 2011
+++ src/lib/libterminfo/tparm.c	Tue Dec 11 04:26:26 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: tparm.c,v 1.7 2011/10/03 20:13:48 roy Exp $ */
+/* $NetBSD: tparm.c,v 1.7.4.1 2012/12/11 04:26:26 riz Exp $ */
 
 /*
  * Copyright (c) 2009, 2011 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: tparm.c,v 1.7 2011/10/03 20:13:48 roy Exp $");
+__RCSID("$NetBSD: tparm.c,v 1.7.4.1 2012/12/11 04:26:26 riz Exp $");
 
 #include <assert.h>
 #include <ctype.h>
@@ -56,7 +56,7 @@ typedef struct {
 static int
 push(int num, char *string, TPSTACK *stack)
 {
-	if (stack->offset > sizeof(stack->nums)) {
+	if (stack->offset >= sizeof(stack->nums)) {
 		errno = E2BIG;
 		return -1;
 	}

Reply via email to