diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-11-25 18:03:18 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-11-25 18:03:18 +0000 |
commit | 22ffcac6c7ac8f4ad96cc3e7072551baab91311f (patch) | |
tree | 74f2c84c8a74c6ad9264fd632c2a5cbf02d07257 /usr.bin/bgplg/bgplgsh.c | |
parent | fc3c75d354684cf10d0f132a30a9c266ae4a4c7b (diff) |
variety of unsigned char casts (or conversions) for ctype
ok krw
Diffstat (limited to 'usr.bin/bgplg/bgplgsh.c')
-rw-r--r-- | usr.bin/bgplg/bgplgsh.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/bgplg/bgplgsh.c b/usr.bin/bgplg/bgplgsh.c index 5d4e1adda69..85f27fbe552 100644 --- a/usr.bin/bgplg/bgplgsh.c +++ b/usr.bin/bgplg/bgplgsh.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bgplgsh.c,v 1.5 2013/06/02 14:11:38 florian Exp $ */ +/* $OpenBSD: bgplgsh.c,v 1.6 2013/11/25 18:02:50 deraadt Exp $ */ /* * Copyright (c) 2005, 2006 Reyk Floeter <reyk@openbsd.org> @@ -61,7 +61,7 @@ lg_checkarg(char *arg) return (0); #define allowed_in_string(_x) \ - ((isalnum(_x) || isprint(_x)) && \ + ((isalnum((unsigned char)_x) || isprint((unsigned char)_x)) && \ (_x != '%' && _x != '\\' && _x != ';' && _x != '&' && _x != '|')) for (i = 0; i < len; i++) { @@ -70,7 +70,7 @@ lg_checkarg(char *arg) return (EPERM); } } - +#undef allowed_in_string return (0); } @@ -88,7 +88,7 @@ lg_arg2argv(char *arg, int *argc) /* Count elements */ for (i = 0; i < len; i++) { - if (isspace(arg[i])) { + if (isspace((unsigned char)arg[i])) { /* filter out additional options */ if (arg[i + 1] == '-') { printf("invalid input\n"); |