From da3b2e6612e4b3802a9cacc6e4a714a420adcd8f Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Wed, 13 Dec 1995 12:54:26 +0000 Subject: [PATCH] Localize it --- usr.bin/msgs/msgs.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/usr.bin/msgs/msgs.c b/usr.bin/msgs/msgs.c index be1b4074c0ab..0143e42d8a81 100644 --- a/usr.bin/msgs/msgs.c +++ b/usr.bin/msgs/msgs.c @@ -73,6 +73,7 @@ static char sccsid[] = "@(#)msgs.c 8.1 (Berkeley) 6/6/93"; #include #include #include +#include #include #include #include @@ -160,7 +161,7 @@ int argc; char *argv[]; #ifdef UNBUFFERED setbuf(stdout, NULL); #endif - + setlocale(LC_ALL, ""); time(&t); setuid(uid = getuid()); @@ -854,9 +855,9 @@ FILE *infile; char * nxtfld(s) -char *s; +unsigned char *s; { - if (*s) while (*s && *s > ' ') s++; /* skip over this field */ - if (*s) while (*s && *s <= ' ') s++; /* find start of next field */ + if (*s) while (*s && !isspace(*s)) s++; /* skip over this field */ + if (*s) while (*s && isspace(*s)) s++; /* find start of next field */ return (s); }