aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2016-10-14 21:53:22 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2016-10-14 21:53:22 +0200
commitc385109f9c642f4c437348d7a6efa1e8048a9e6e (patch)
tree18febbf757f1c16489e59b379bd3f8eb04a995dc
parentf0f0b790be1526d123b46ea0096b23ee7b6c1640 (diff)
downloadperl-URPM-c385109f9c642f4c437348d7a6efa1e8048a9e6e.tar
perl-URPM-c385109f9c642f4c437348d7a6efa1e8048a9e6e.tar.gz
perl-URPM-c385109f9c642f4c437348d7a6efa1e8048a9e6e.tar.bz2
perl-URPM-c385109f9c642f4c437348d7a6efa1e8048a9e6e.tar.xz
perl-URPM-c385109f9c642f4c437348d7a6efa1e8048a9e6e.zip
fix compiling on 32bit
-rw-r--r--URPM.xs2
1 files changed, 1 insertions, 1 deletions
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);