PR/21172: Christian Biere: ctype function misuse.

This commit is contained in:
christos 2005-04-17 17:18:16 +00:00
parent 30a161cf4d
commit 7fc7748a3e
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: devopen.c,v 1.3 2005/01/19 01:58:21 chs Exp $ */
/* $NetBSD: devopen.c,v 1.4 2005/04/17 17:18:16 christos Exp $ */
/*
* Copyright (c) 1994 Rolf Grossmann
* All rights reserved.
@ -41,7 +41,7 @@ atoi(const char *cp)
{
int val = 0;
while(isdigit(*cp))
while(isdigit((unsigned char)*cp))
val = val * 10 + (*cp++ - '0');
return val;
}