aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2003-01-06 11:25:28 +0000
committerFrancois Pons <fpons@mandriva.com>2003-01-06 11:25:28 +0000
commit552ab6f5bc019f71383251b9cd519b98ef04e86a (patch)
tree423131e8e15327b2ade37f9a30f3267a4631265e /URPM.xs
parent98ee250d58af758552ba7ad93aefde0ca171f665 (diff)
downloadperl-URPM-552ab6f5bc019f71383251b9cd519b98ef04e86a.tar
perl-URPM-552ab6f5bc019f71383251b9cd519b98ef04e86a.tar.gz
perl-URPM-552ab6f5bc019f71383251b9cd519b98ef04e86a.tar.bz2
perl-URPM-552ab6f5bc019f71383251b9cd519b98ef04e86a.tar.xz
perl-URPM-552ab6f5bc019f71383251b9cd519b98ef04e86a.zip
0.81-5mdk
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs2
1 files changed, 1 insertions, 1 deletions
diff --git a/URPM.xs b/URPM.xs
index 17f97e2..d1c6ffa 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -351,7 +351,7 @@ pack_header(URPM__Package pkg) {
if (!filename || !strcmp(p, filename)) {
p[-1] = 0;
} else {
- p = p + snprintf(p, sizeof(buff) - (p-buff), "%s", filename);
+ p = p + 1 + snprintf(p, sizeof(buff) - (p-buff), "%s", filename);
}
pkg->info = memcpy(malloc(p-buff), buff, p-buff);
}