tools/mkfingerprint: strlen(3) on a raw byte array is wrong -- use its length as indicated by the function that filled it

This commit is contained in:
Aaron Jones 2016-06-01 20:41:03 +00:00
parent 2cad541582
commit 707bc7cd5a
No known key found for this signature in database
GPG Key ID: 6E854C0FAAD4CEA4
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ int main(int argc, char *argv[])
}
printf("%s", prefix);
for (i = 0; i < strlen(certfp); i++) {
for (i = 0; i < ret; i++) {
printf("%02x", certfp[i]);
}
printf("\n");