mirror of
https://github.com/SciresM/hactool
synced 2024-11-26 14:00:23 +00:00
Merge pull request #40 from lioncash/memset
extkeys: Correct memset zeroing in extkeys_initialize_keyset()
This commit is contained in:
commit
f9e37fb05c
1 changed files with 1 additions and 2 deletions
|
@ -260,8 +260,7 @@ void extkeys_initialize_keyset(nca_keyset_t *keyset, FILE *f) {
|
|||
pki_set_beta_nca0_exponent(exponent);
|
||||
matched_key = 1;
|
||||
} else {
|
||||
char test_name[0x100];
|
||||
memset(test_name, 0, sizeof(100));
|
||||
char test_name[0x100] = {0};
|
||||
for (unsigned int i = 0; i < 0x20 && !matched_key; i++) {
|
||||
snprintf(test_name, sizeof(test_name), "keyblob_key_source_%02"PRIx32, i);
|
||||
if (strcmp(key, test_name) == 0) {
|
||||
|
|
Loading…
Reference in a new issue