From b38fe22856a4874a83a51be204a8bb2fd3582821 Mon Sep 17 00:00:00 2001 From: Ian Darwin Date: Fri, 11 Sep 1992 17:43:08 +0000 Subject: [PATCH] Zoulas: arg to isXXX in ctype must now be unsigned, to prevent indexing before beginning of _ctype array. --- src/apprentice.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 **)); -- 2.40.0