opnsense-ports/devel/got/files/patch-libexec_got-index-pack_got-index-pack.c
Franco Fichtner eb6042d4fc */*: sync with upstream
Taken from: HardenedBSD
2020-09-25 15:04:32 +02:00

11 lines
440 B
C

--- libexec/got-index-pack/got-index-pack.c.orig 2020-09-25 11:58:47 UTC
+++ libexec/got-index-pack/got-index-pack.c
@@ -246,7 +246,7 @@ read_packed_object(struct got_pack *pack, struct got_i
free(data);
break;
}
- if (asprintf(&header, "%s %lld", obj_label, obj->size) == -1) {
+ if (asprintf(&header, "%s %lld", obj_label, (long long)obj->size) == -1) {
err = got_error_from_errno("asprintf");
free(data);
break;