summaryrefslogtreecommitdiffstats
path: root/usr.bin/ftp/domacro.c
diff options
context:
space:
mode:
authormmcc <mmcc@openbsd.org>2015-10-18 03:04:11 +0000
committermmcc <mmcc@openbsd.org>2015-10-18 03:04:11 +0000
commitd76cc7f5f596b7c70a7ecfdedc0d9e99e18d3d22 (patch)
tree463464d7985f6d022ffaa3093f212a126b7de52b /usr.bin/ftp/domacro.c
parentUse explicit_bzero() when the memory is freed directly afterward. (diff)
downloadwireguard-openbsd-d76cc7f5f596b7c70a7ecfdedc0d9e99e18d3d22.tar.xz
wireguard-openbsd-d76cc7f5f596b7c70a7ecfdedc0d9e99e18d3d22.zip
A whole buncha unsigned char casts for ctype function arguments.
ok guenther@
Diffstat (limited to 'usr.bin/ftp/domacro.c')
-rw-r--r--usr.bin/ftp/domacro.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/ftp/domacro.c b/usr.bin/ftp/domacro.c
index 107708deb51..72b59b55b63 100644
--- a/usr.bin/ftp/domacro.c
+++ b/usr.bin/ftp/domacro.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: domacro.c,v 1.17 2009/05/05 19:35:30 martynas Exp $ */
+/* $OpenBSD: domacro.c,v 1.18 2015/10/18 03:04:11 mmcc Exp $ */
/* $NetBSD: domacro.c,v 1.10 1997/07/20 09:45:45 lukem Exp $ */
/*
@@ -65,7 +65,7 @@ domacro(int argc, char *argv[])
TOP:
cp1 = macros[i].mac_start;
while (cp1 != macros[i].mac_end) {
- while (isspace(*cp1)) {
+ while (isspace((unsigned char)*cp1)) {
cp1++;
}
cp2 = line;
@@ -75,9 +75,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--;