xbps-digest: use the SHA256_DIGEST_STRING_LENGTH constant.
--HG-- extra : convert_revision : 1da9eff8ef7aa5a214bde8036ebfb81df8d9d5f7
This commit is contained in:
parent
0c9f739e92
commit
8a31007139
|
@ -62,7 +62,7 @@ main(int argc, char **argv)
|
|||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
digest = malloc(SHA256_DIGEST_LENGTH * 2 + 1);
|
||||
digest = malloc(SHA256_DIGEST_STRING_LENGTH);
|
||||
if (digest == NULL) {
|
||||
printf("xbps-digest: malloc failed (%s)\n",
|
||||
strerror(errno));
|
||||
|
|
Loading…
Reference in New Issue