Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-6-0]: src/lib/libterminfo Pull up following revision(s) (requeste...
details: https://anonhg.NetBSD.org/src/rev/85c1705700c2
branches: netbsd-6-0
changeset: 774711:85c1705700c2
user: riz <riz%NetBSD.org@localhost>
date: Tue Dec 11 04:26:49 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 5f06316f45a0 -r 85c1705700c2 lib/libterminfo/tparm.c
--- a/lib/libterminfo/tparm.c Mon Dec 10 18:26:01 2012 +0000
+++ b/lib/libterminfo/tparm.c Tue Dec 11 04:26:49 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.8.1 2012/12/11 04:26:49 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.8.1 2012/12/11 04:26:49 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