xbps-digest: use the SHA256_DIGEST_STRING_LENGTH constant.

--HG--
extra : convert_revision : 1da9eff8ef7aa5a214bde8036ebfb81df8d9d5f7
This commit is contained in:
Juan RP 2009-07-29 23:13:04 +02:00
parent 0c9f739e92
commit 8a31007139
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ main(int argc, char **argv)
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
digest = malloc(SHA256_DIGEST_LENGTH * 2 + 1); digest = malloc(SHA256_DIGEST_STRING_LENGTH);
if (digest == NULL) { if (digest == NULL) {
printf("xbps-digest: malloc failed (%s)\n", printf("xbps-digest: malloc failed (%s)\n",
strerror(errno)); strerror(errno));