From 844b3dce903739f08504061b4888f6f342e35754 Mon Sep 17 00:00:00 2001 From: christos Date: Sat, 19 Dec 1998 17:06:20 +0000 Subject: [PATCH] char -> unsigned char --- usr.bin/jot/jot.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/usr.bin/jot/jot.c b/usr.bin/jot/jot.c index 92b9f9e7034f..d095eec46605 100644 --- a/usr.bin/jot/jot.c +++ b/usr.bin/jot/jot.c @@ -1,4 +1,4 @@ -/* $NetBSD: jot.c,v 1.4 1997/10/19 03:34:49 lukem Exp $ */ +/* $NetBSD: jot.c,v 1.5 1998/12/19 17:06:20 christos Exp $ */ /*- * Copyright (c) 1993 @@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1993\n\ #if 0 static char sccsid[] = "@(#)jot.c 8.1 (Berkeley) 6/6/93"; #endif -__RCSID("$NetBSD: jot.c,v 1.4 1997/10/19 03:34:49 lukem Exp $"); +__RCSID("$NetBSD: jot.c,v 1.5 1998/12/19 17:06:20 christos Exp $"); #endif /* not lint */ /* @@ -357,7 +357,7 @@ getprec(s) if (!*p) return (0); for (q = ++p; *p; p++) - if (!isdigit(*p)) + if (!isdigit((unsigned char)*p)) break; return (p - q); } @@ -381,7 +381,7 @@ getformat() else if (!*(p+1)) strcat(format, "%"); /* cannot end in single '%' */ else { - while (!isalpha(*p)) + while (!isalpha((unsigned char)*p)) p++; switch (*p) { case 'f': case 'e': case 'g': case '%':