fixed extra characters printed for 32B ssids

fixed #682
This commit is contained in:
Radoslaw Olko 2019-01-17 19:41:06 +01:00
parent bbc22571ec
commit 1c359b0bc9
2 changed files with 2 additions and 2 deletions

View file

@ -44,7 +44,7 @@ static void scan_done_cb(void *arg, sdk_scan_status_t status)
memcpy(ssid, bss->ssid, len); memcpy(ssid, bss->ssid, len);
ssid[len] = 0; ssid[len] = 0;
printf("%32s (" MACSTR ") RSSI: %02d, security: %s\n", ssid, printf("%32.32s (" MACSTR ") RSSI: %02d, security: %s\n", ssid,
MAC2STR(bss->bssid), bss->rssi, auth_modes[bss->authmode]); MAC2STR(bss->bssid), bss->rssi, auth_modes[bss->authmode]);
bss = bss->next.stqe_next; bss = bss->next.stqe_next;

@ -1 +1 @@
Subproject commit 30472301589fb0c4eae792884cafc92651a959e3 Subproject commit 29d341eea8954620a2b17449d0de905268a6189a