Module Name: src
Committed By: snj
Date: Sun May 3 22:53:40 UTC 2009
Modified Files:
src/lib/libedit [netbsd-5]: common.c
Log Message:
Pull up following revision(s) (requested by msaitoh in ticket #703):
lib/libedit/common.c: revision 1.23
fix mis-evaluating whether a char is digit or not.
To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.21.4.1 src/lib/libedit/common.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/libedit/common.c
diff -u src/lib/libedit/common.c:1.21 src/lib/libedit/common.c:1.21.4.1
--- src/lib/libedit/common.c:1.21 Tue Sep 30 08:37:42 2008
+++ src/lib/libedit/common.c Sun May 3 22:53:40 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: common.c,v 1.21 2008/09/30 08:37:42 aymeric Exp $ */
+/* $NetBSD: common.c,v 1.21.4.1 2009/05/03 22:53:40 snj Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)common.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: common.c,v 1.21 2008/09/30 08:37:42 aymeric Exp $");
+__RCSID("$NetBSD: common.c,v 1.21.4.1 2009/05/03 22:53:40 snj Exp $");
#endif
#endif /* not lint && not SCCSID */
@@ -382,7 +382,7 @@
ed_digit(EditLine *el, int c)
{
- if (!isdigit(c))
+ if (!isdigit((unsigned char)c))
return (CC_ERROR);
if (el->el_state.doingarg) {
@@ -410,7 +410,7 @@
ed_argument_digit(EditLine *el, int c)
{
- if (!isdigit(c))
+ if (!isdigit((unsigned char)c))
return (CC_ERROR);
if (el->el_state.doingarg) {