forked from vieter-v/libvieter
chore: Rebase to dev branch with binomial heap PR.
This commit is contained in:
parent
660e711b17
commit
fbbc15cf73
7 changed files with 403 additions and 3 deletions
|
|
@ -151,9 +151,9 @@ char *package_to_description(Pkg *pkg) {
|
|||
ADD_STRING("\n\n%%CSIZE%%\n%ld", csize);
|
||||
ADD_STRING("\n\n%%ISIZE%%\n%ld", size);
|
||||
|
||||
char res[65];
|
||||
sha256sum(pkg, res);
|
||||
snprintf(aux, SMALL_BUFF_SIZE, "\n\n%%SHA256SUM%%\n%s", res);
|
||||
char checksum[65];
|
||||
sha256sum(pkg, checksum);
|
||||
snprintf(aux, SMALL_BUFF_SIZE, "\n\n%%SHA256SUM%%\n%s", checksum);
|
||||
if (buff_size < strlen(description) + SMALL_BUFF_SIZE + 1) {
|
||||
description = realloc(description, buff_size * 2);
|
||||
buff_size *= 2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue