0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-14 14:01:08 +01:00

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 ef9cb1d8de
commit 906fd91f4b
No known key found for this signature in database
GPG key ID: 6E854C0FAAD4CEA4

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");