Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-6]: src/lib/libterminfo Pull up following revision(s) (requested ...
details: https://anonhg.NetBSD.org/src/rev/9beaafa25b17
branches: netbsd-6
changeset: 775563:9beaafa25b17
user: riz <riz%NetBSD.org@localhost>
date: Tue Dec 11 04:26:26 2012 +0000
description:
Pull up following revision(s) (requested by msaitoh in ticket #734):
lib/libterminfo/tparm.c: revision 1.9
Fix off by one error.
diffstat:
lib/libterminfo/tparm.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 6613c3d4a6fd -r 9beaafa25b17 lib/libterminfo/tparm.c
--- a/lib/libterminfo/tparm.c Mon Dec 10 21:19:08 2012 +0000
+++ b/lib/libterminfo/tparm.c Tue Dec 11 04:26:26 2012 +0000
@@ -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 @@
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;
}
Home |
Main Index |
Thread Index |
Old Index