Module Name: src
Committed By: snj
Date: Thu Apr 23 02:00:19 UTC 2009
Modified Files:
src/lib/libedit [netbsd-3]: common.c
Log Message:
Pull up following revision(s) (requested by msaitoh in ticket #2006):
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.16 -r1.16.6.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.16 src/lib/libedit/common.c:1.16.6.1
--- src/lib/libedit/common.c:1.16 Thu Aug 7 16:44:30 2003
+++ src/lib/libedit/common.c Thu Apr 23 02:00:19 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: common.c,v 1.16 2003/08/07 16:44:30 agc Exp $ */
+/* $NetBSD: common.c,v 1.16.6.1 2009/04/23 02:00:19 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.16 2003/08/07 16:44:30 agc Exp $");
+__RCSID("$NetBSD: common.c,v 1.16.6.1 2009/04/23 02:00:19 snj Exp $");
#endif
#endif /* not lint && not SCCSID */
@@ -383,7 +383,7 @@
ed_digit(EditLine *el, int c)
{
- if (!isdigit(c))
+ if (!isdigit((unsigned char)c))
return (CC_ERROR);
if (el->el_state.doingarg) {
@@ -411,7 +411,7 @@
ed_argument_digit(EditLine *el, int c)
{
- if (!isdigit(c))
+ if (!isdigit((unsigned char)c))
return (CC_ERROR);
if (el->el_state.doingarg) {