mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 10:12:39 +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:
parent
ef9cb1d8de
commit
906fd91f4b
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