diff options
-rw-r--r-- | URPM.xs | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -788,11 +788,11 @@ pack_header(const URPM__Package pkg) { if (pkg->h) { if (pkg->info == NULL) { char buff[1024]; - char *p = buff; - char *name = get_name(pkg->h, RPMTAG_NAME); - char *version = get_name(pkg->h, RPMTAG_VERSION); - char *release = get_name(pkg->h, RPMTAG_RELEASE); - char *arch = get_arch(pkg->h); + const char *p = buff; + const char *name = get_name(pkg->h, RPMTAG_NAME); + const char *version = get_name(pkg->h, RPMTAG_VERSION); + const char *release = get_name(pkg->h, RPMTAG_RELEASE); + const char *arch = get_arch(pkg->h); p += 1 + snprintf(buff, sizeof(buff), "%s-%s-%s.%s@%d@%d@%s", name, version, release, arch, get_int(pkg->h, RPMTAG_EPOCH), get_int(pkg->h, RPMTAG_SIZE), |