]> git.sur5r.net Git - i3/i3status/commitdiff
use proper unsigned type for ESSID length
authorMichael Stapelberg <michael@stapelberg.de>
Fri, 25 Sep 2015 08:49:14 +0000 (10:49 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 25 Sep 2015 08:49:14 +0000 (10:49 +0200)
src/print_wireless_info.c

index a629db43f8df5cdf219528da32ec0fefd03297cc..79e4cd8e049a21168775c04b632711efd9aaf89e 100644 (file)
@@ -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];