From 7fc7748a3e7cca7a8a48bb8809c69f9b75801b2e Mon Sep 17 00:00:00 2001 From: christos Date: Sun, 17 Apr 2005 17:18:16 +0000 Subject: [PATCH] PR/21172: Christian Biere: ctype function misuse. --- sys/arch/next68k/stand/boot/devopen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/arch/next68k/stand/boot/devopen.c b/sys/arch/next68k/stand/boot/devopen.c index 82decc4996fd..0eab527d94b6 100644 --- a/sys/arch/next68k/stand/boot/devopen.c +++ b/sys/arch/next68k/stand/boot/devopen.c @@ -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; }