mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-20 16:46:14 +00:00
Use snprintf instead of sprintf
This commit is contained in:
@@ -554,7 +554,7 @@ esp_supp_dpp_bootstrap_gen(const char *chan_list, enum dpp_bootstrap_type type,
|
||||
}
|
||||
}
|
||||
|
||||
sprintf(command, "type=qrcode mac=" MACSTR "%s%s%s%s%s",
|
||||
os_snprintf(command, 1200, "type=qrcode mac=" MACSTR "%s%s%s%s%s",
|
||||
MAC2STR(params->mac), uri_chan_list,
|
||||
key ? "key=" : "", key ? key : "",
|
||||
params->info_len ? " info=" : "",
|
||||
|
Reference in New Issue
Block a user