diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2016-10-14 21:53:22 +0200 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2016-10-14 21:53:22 +0200 |
commit | c385109f9c642f4c437348d7a6efa1e8048a9e6e (patch) | |
tree | 18febbf757f1c16489e59b379bd3f8eb04a995dc | |
parent | f0f0b790be1526d123b46ea0096b23ee7b6c1640 (diff) | |
download | perl-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.xs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |