Skip to content

Commit 75ab673

Browse files
committed
esp32/modnetwork: Use memset instead of bzero, the latter is deprecated.
1 parent 2bcd80c commit 75ab673

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

esp32/modnetwork.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ STATIC mp_obj_t esp_connect(mp_uint_t n_args, const mp_obj_t *args) {
228228
mp_uint_t len;
229229
const char *p;
230230
if (n_args > 1) {
231-
bzero((void *)&wifi_sta_config, sizeof(wifi_sta_config));
231+
memset(&wifi_sta_config, 0, sizeof(wifi_sta_config));
232232
p = mp_obj_str_get_data(args[1], &len);
233233
memcpy(wifi_sta_config.sta.ssid, p, MIN(len, sizeof(wifi_sta_config.sta.ssid)));
234234
p = (n_args > 2) ? mp_obj_str_get_data(args[2], &len) : "";

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy