From c385109f9c642f4c437348d7a6efa1e8048a9e6e Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 14 Oct 2016 21:53:22 +0200 Subject: fix compiling on 32bit --- URPM.xs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'URPM.xs') diff --git a/URPM.xs b/URPM.xs index f524215..609e1cc 100644 --- a/URPM.xs +++ b/URPM.xs @@ -753,7 +753,7 @@ pack_header(const URPM__Package pkg) { const char *p = buff; const char *nvr = headerGetAsString(pkg->h, RPMTAG_NVR); const char *arch = get_arch(pkg->h); - p += 1 + snprintf(buff, sizeof(buff), "%s.%s@%lu@%lu@%s", nvr, arch, + p += 1 + snprintf(buff, sizeof(buff), "%s.%s@%llu@%llu@%s", nvr, arch, get_int(pkg->h, RPMTAG_EPOCH), get_int(pkg->h, RPMTAG_SIZE), get_name(pkg->h, RPMTAG_GROUP)); pkg->info = memcpy(malloc(p-buff), buff, p-buff); -- cgit v1.2.1