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:58:58 +0200 |
commit | aeb63a76b34d99a91888a224da49f08926722cdd (patch) | |
tree | 82f3261ee9322eb71067a85b6e66723b8a80e4bb | |
parent | a39d4e83a342a83bc4091a43291e5a0a9fa043c2 (diff) | |
download | perl-URPM-aeb63a76b34d99a91888a224da49f08926722cdd.tar perl-URPM-aeb63a76b34d99a91888a224da49f08926722cdd.tar.gz perl-URPM-aeb63a76b34d99a91888a224da49f08926722cdd.tar.bz2 perl-URPM-aeb63a76b34d99a91888a224da49f08926722cdd.tar.xz perl-URPM-aeb63a76b34d99a91888a224da49f08926722cdd.zip |
fix compiling on 32bit
-rw-r--r-- | URPM.xs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -757,7 +757,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); |