From: Ian Darwin Date: Fri, 11 Sep 1992 17:43:08 +0000 (+0000) Subject: Zoulas: arg to isXXX in ctype must now be unsigned, to prevent X-Git-Tag: FILE3_27~215 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b38fe22856a4874a83a51be204a8bb2fd3582821;p=file Zoulas: arg to isXXX in ctype must now be unsigned, to prevent indexing before beginning of _ctype array. --- diff --git a/src/apprentice.c b/src/apprentice.c index 7c324fad..ee6026bc 100644 --- a/src/apprentice.c +++ b/src/apprentice.c @@ -33,10 +33,11 @@ #ifndef lint static char *moduleid = - "@(#)$Id: apprentice.c,v 1.13 1992/09/08 15:36:27 ian Exp $"; + "@(#)$Id: apprentice.c,v 1.14 1992/09/11 17:43:08 ian Exp $"; #endif /* lint */ -#define EATAB {while (isascii(*l) && isspace(*l)) ++l;} +#define EATAB {while (isascii((unsigned char) *l) && \ + isspace((unsigned char) *l)) ++l;} static int getvalue __P((struct magic *, char **));