summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stapelberg <michael@stapelberg.de>2015-09-25 10:49:14 +0200
committerMichael Stapelberg <michael@stapelberg.de>2015-09-25 10:49:14 +0200
commitb8b07511b107bb5af9e6f38bbfc9fcc4a7a75622 (patch)
treed8be389b457c438b3fe2212b879e9caf9f758528
parent45ccd84309b2f276fe58f374dcb5c20d8363e64d (diff)
use proper unsigned type for ESSID length
-rw-r--r--src/print_wireless_info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/print_wireless_info.c b/src/print_wireless_info.c
index a629db4..79e4cd8 100644
--- a/src/print_wireless_info.c
+++ b/src/print_wireless_info.c
@@ -125,7 +125,7 @@ static void find_ssid(uint8_t *ies, uint32_t ies_len, uint8_t **ssid, uint32_t *
}
if (ies_len < 2)
return;
- if (ies_len < 2 + ies[1])
+ if (ies_len < 2 + (uint8_t)ies[1])
return;
*ssid_len = ies[1];