coverity migth consider this to be better

This commit is contained in:
iceman1001 committed 2023-07-24 00:14:56 +02:00
1 parent 5013d67208
commit 300d274d43
3 files changed
+14 -9

No files matched your search

+2 -1
View File
@@ -240,7 +240,8 @@ static int print_and_validate_version(struct version_information_t *vi) {
return PM3_EFILE;
}
char temp[PM3_CMD_DATA_SIZE - 12]; // same limit as for ARM image
// same limit as for ARM image
char temp[PM3_CMD_DATA_SIZE - 12] = {0};
FormatVersionInformation(temp, sizeof(temp), "", vi);
PrintAndLogEx(SUCCESS, _CYAN_("ELF file version") _YELLOW_(" %s"), temp);