Correct ctype(3) usage, just in case....
This commit is contained in:
parent
584a2f53ee
commit
9bdf22f648
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: tputs.c,v 1.15 2000/06/02 13:13:12 itojun Exp $ */
|
||||
/* $NetBSD: tputs.c,v 1.16 2000/07/14 05:26:04 itohy Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1993
|
||||
@ -38,7 +38,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)tputs.c 8.1 (Berkeley) 6/4/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: tputs.c,v 1.15 2000/06/02 13:13:12 itojun Exp $");
|
||||
__RCSID("$NetBSD: tputs.c,v 1.16 2000/07/14 05:26:04 itohy Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -75,20 +75,20 @@ _tputs_convert(ptr, affcnt)
|
||||
/*
|
||||
* Convert the number representing the delay.
|
||||
*/
|
||||
if (isdigit(*(*ptr))) {
|
||||
if (isdigit(*(unsigned char *)(*ptr))) {
|
||||
do
|
||||
i = i * 10 + *(*ptr)++ - '0';
|
||||
while (isdigit(*(*ptr)));
|
||||
while (isdigit(*(unsigned char *)(*ptr)));
|
||||
}
|
||||
i *= 10;
|
||||
if (*(*ptr) == '.') {
|
||||
(*ptr)++;
|
||||
if (isdigit(*(*ptr)))
|
||||
if (isdigit(*(unsigned char *)(*ptr)))
|
||||
i += *(*ptr) - '0';
|
||||
/*
|
||||
* Only one digit to the right of the decimal point.
|
||||
*/
|
||||
while (isdigit(*(*ptr)))
|
||||
while (isdigit(*(unsigned char *)(*ptr)))
|
||||
(*ptr)++;
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: options.c,v 1.8 2000/04/02 06:31:58 billc Exp $ */
|
||||
/* $NetBSD: options.c,v 1.9 2000/07/14 05:26:05 itohy Exp $ */
|
||||
|
||||
/*
|
||||
* General skeleton for adding options to the access control language. The
|
||||
@ -35,7 +35,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#) options.c 1.17 96/02/11 17:01:31";
|
||||
#else
|
||||
__RCSID("$NetBSD: options.c,v 1.8 2000/04/02 06:31:58 billc Exp $");
|
||||
__RCSID("$NetBSD: options.c,v 1.9 2000/07/14 05:26:05 itohy Exp $");
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@ -645,7 +645,7 @@ register char *string;
|
||||
char *cp;
|
||||
|
||||
for (cp = string; *cp; cp++) {
|
||||
if (!isspace(*cp)) {
|
||||
if (!isspace((unsigned char) *cp)) {
|
||||
if (start == 0)
|
||||
start = cp;
|
||||
end = cp;
|
||||
|
Loading…
Reference in New Issue
Block a user