Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libterminfo Fix an off-by-one error when processing embe...
details: https://anonhg.NetBSD.org/src/rev/ecd946bebcd2
branches: trunk
changeset: 763099:ecd946bebcd2
user: roy <roy%NetBSD.org@localhost>
date: Thu Mar 10 09:45:32 2011 +0000
description:
Fix an off-by-one error when processing embedded values.
diffstat:
lib/libterminfo/tparm.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r ab961301ae40 -r ecd946bebcd2 lib/libterminfo/tparm.c
--- a/lib/libterminfo/tparm.c Thu Mar 10 09:19:14 2011 +0000
+++ b/lib/libterminfo/tparm.c Thu Mar 10 09:45:32 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tparm.c,v 1.2 2010/09/22 06:10:51 roy Exp $ */
+/* $NetBSD: tparm.c,v 1.3 2011/03/10 09:45:32 roy Exp $ */
/*
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: tparm.c,v 1.2 2010/09/22 06:10:51 roy Exp $");
+__RCSID("$NetBSD: tparm.c,v 1.3 2011/03/10 09:45:32 roy Exp $");
#include <assert.h>
#include <ctype.h>
@@ -371,7 +371,7 @@
break;
case '{':
val = 0;
- for (str++; isdigit((unsigned char)*str); str++)
+ for (; isdigit((unsigned char)*str); str++)
val = (val * 10) + (*str - '0');
if (push(val, NULL, &stack))
return NULL;
Home |
Main Index |
Thread Index |
Old Index