aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--URPM.xs10
1 files changed, 5 insertions, 5 deletions
diff --git a/URPM.xs b/URPM.xs
index e440857..ca66abf 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -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),