aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2016-02-10 19:27:42 (GMT)
committerJouni Malinen <j@w1.fi>2016-02-18 15:39:00 (GMT)
commit640b0b933a8fea3f2276198c42c8fd60dd39aaa3 (patch)
treeadadd6126dd90c343c76e99a0081310d8fa98162 /hostapd
parenta5a3efccc2bf91444d048ebe6d95116fc3c3abdd (diff)
downloadhostap-640b0b933a8fea3f2276198c42c8fd60dd39aaa3.zip
hostap-640b0b933a8fea3f2276198c42c8fd60dd39aaa3.tar.gz
hostap-640b0b933a8fea3f2276198c42c8fd60dd39aaa3.tar.bz2
ctype functions require an unsigned char
Ensure that characters are represented as unsigned char when using isblank() and isspace(). These function take in a "int c" argument, but it needs to be unsigned for the cases where EOF is not indicated. Signed-off-by: Roy Marples <roy@marples.name>
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/ctrl_iface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hostapd/ctrl_iface.c b/hostapd/ctrl_iface.c
index d56599b..0939d6e 100644
--- a/hostapd/ctrl_iface.c
+++ b/hostapd/ctrl_iface.c
@@ -1877,13 +1877,13 @@ static int hostapd_ctrl_iface_vendor(struct hostapd_data *hapd, char *cmd,
/* cmd: <vendor id> <subcommand id> [<hex formatted data>] */
vendor_id = strtoul(cmd, &pos, 16);
- if (!isblank(*pos))
+ if (!isblank((unsigned char) *pos))
return -EINVAL;
subcmd = strtoul(pos, &pos, 10);
if (*pos != '\0') {
- if (!isblank(*pos++))
+ if (!isblank((unsigned char) *pos++))
return -EINVAL;
data_len = os_strlen(pos);
}