]> git.sur5r.net Git - i3/i3status/blobdiff - src/print_wireless_info.c
Fix comparison between signed/unsigned warning for real
[i3/i3status] / src / print_wireless_info.c
index 79e4cd8e049a21168775c04b632711efd9aaf89e..039ae19e4dc3dc8a8b01f4570776ef0c4ed8ea83 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 + (uint8_t)ies[1])
+    if (ies_len < (uint32_t)(2 + ies[1]))
         return;
 
     *ssid_len = ies[1];