From 1c359b0bc91c6428b935382f5b3706d017743a06 Mon Sep 17 00:00:00 2001 From: Radoslaw Olko Date: Thu, 17 Jan 2019 19:41:06 +0100 Subject: [PATCH] fixed extra characters printed for 32B ssids fixed #682 --- examples/wifi_scan/main.c | 2 +- extras/libesphttpd/libesphttpd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/wifi_scan/main.c b/examples/wifi_scan/main.c index a180a21..6dfa825 100644 --- a/examples/wifi_scan/main.c +++ b/examples/wifi_scan/main.c @@ -44,7 +44,7 @@ static void scan_done_cb(void *arg, sdk_scan_status_t status) memcpy(ssid, bss->ssid, len); 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]); bss = bss->next.stqe_next; diff --git a/extras/libesphttpd/libesphttpd b/extras/libesphttpd/libesphttpd index 3047230..29d341e 160000 --- a/extras/libesphttpd/libesphttpd +++ b/extras/libesphttpd/libesphttpd @@ -1 +1 @@ -Subproject commit 30472301589fb0c4eae792884cafc92651a959e3 +Subproject commit 29d341eea8954620a2b17449d0de905268a6189a