]> granicus.if.org Git - file/commitdiff
Zoulas: arg to isXXX in ctype must now be unsigned, to prevent
authorIan Darwin <ian@darwinsys.com>
Fri, 11 Sep 1992 17:43:08 +0000 (17:43 +0000)
committerIan Darwin <ian@darwinsys.com>
Fri, 11 Sep 1992 17:43:08 +0000 (17:43 +0000)
indexing before beginning of _ctype array.

src/apprentice.c

index 7c324fad49c20e96d8902d3839cd88d07a00c165..ee6026bc1e539b6ee2a769f4e1999334c4e631a6 100644 (file)
 
 #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 **));