diff options
author | ache <ache@FreeBSD.org> | 1997-06-27 09:30:15 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-06-27 09:30:15 +0000 |
commit | fae8900137945449327d19f5b8d519086f5a6033 (patch) | |
tree | 6b4f5813e991617051d4890b73f6b95d008a5772 /usr.bin/ftp/domacro.c | |
parent | 6d60ffd86ab763b4c8b04ee0a43cf1c9fa7be893 (diff) | |
download | FreeBSD-src-fae8900137945449327d19f5b8d519086f5a6033.zip FreeBSD-src-fae8900137945449327d19f5b8d519086f5a6033.tar.gz |
Localize it (ctype)
8bit ctype clean fixes
(I can't input 8bit chars otherwise in this new ftp, it beeps)
Diffstat (limited to 'usr.bin/ftp/domacro.c')
-rw-r--r-- | usr.bin/ftp/domacro.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/ftp/domacro.c b/usr.bin/ftp/domacro.c index cb42f7e..3c058ca 100644 --- a/usr.bin/ftp/domacro.c +++ b/usr.bin/ftp/domacro.c @@ -1,4 +1,4 @@ -/* $Id$ */ +/* $Id: domacro.c,v 1.2 1997/06/25 08:56:37 msmith Exp $ */ /* $NetBSD: domacro.c,v 1.9 1997/03/13 06:23:14 lukem Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)domacro.c 8.3 (Berkeley) 4/2/94"; #else -static char rcsid[] = "$Id$"; +static char rcsid[] = "$Id: domacro.c,v 1.2 1997/06/25 08:56:37 msmith Exp $"; #endif #endif /* not lint */ @@ -77,7 +77,7 @@ domacro(argc, argv) TOP: cp1 = macros[i].mac_start; while (cp1 != macros[i].mac_end) { - while (isspace(*cp1)) { + while (isspace((unsigned char)*cp1)) { cp1++; } cp2 = line; @@ -87,9 +87,9 @@ TOP: *cp2++ = *++cp1; break; case '$': - if (isdigit(*(cp1+1))) { + if (isdigit((unsigned char)*(cp1+1))) { j = 0; - while (isdigit(*++cp1)) { + while (isdigit((unsigned char)*++cp1)) { j = 10*j + *cp1 - '0'; } cp1--; |