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:
parent
2cad541582
commit
707bc7cd5a
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue