We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2edf8d8 commit 0a8b742Copy full SHA for 0a8b742
1 file changed
main/main.c
@@ -81,7 +81,7 @@ static void logAppVersion(const esp_partition_t *partition) {
81
char hash_print[HASH_LEN * 2 + 1];
82
hash_print[HASH_LEN * 2] = 0;
83
for (int i = 0; i < HASH_LEN; ++i) {
84
- sprintf(&hash_print[i * 2], "%02x", app_desc.app_elf_sha256[i]);
+ snprintf(&hash_print[i * 2], 3, "%02x", app_desc.app_elf_sha256[i]);
85
}
86
ESP_LOGI(TAG, "App '%s', Version: '%s'", app_desc.project_name, app_desc.version);
87
ESP_LOGI(TAG, "IDF-Version: '%s'", app_desc.idf_ver);
0 commit comments