From owner-freebsd-current Wed Jan 27 13:35:11 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA13852 for freebsd-current-outgoing; Wed, 27 Jan 1999 13:35:11 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from apollo.backplane.com (apollo.backplane.com [209.157.86.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA13838 for ; Wed, 27 Jan 1999 13:35:08 -0800 (PST) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.9.2/8.9.1) id NAA57832; Wed, 27 Jan 1999 13:35:08 -0800 (PST) (envelope-from dillon) Date: Wed, 27 Jan 1999 13:35:08 -0800 (PST) From: Matthew Dillon Message-Id: <199901272135.NAA57832@apollo.backplane.com> To: current@FreeBSD.ORG Subject: kern/subr_scanf array index of signed char Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG BZZZZZZZZZZZzzzzzzzzzzztttttt! Houston, we have a problem! Fixed. -Matt Matthew Dillon @@ -323,7 +323,7 @@ /* take only those things in the class */ if (flags & SUPPRESS) { n = 0; - while (ccltab[*inp]) { + while (ccltab[(int)(unsigned char)*inp]) { n++, inr--, inp++; if (--width == 0) break; @@ -337,7 +337,7 @@ goto match_failure; } else { p0 = p = va_arg(ap, char *); - while (ccltab[*inp]) { + while (ccltab[(int)(unsigned char)*inp]) { inr--; *p++ = *inp++; if (--width == 0) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message