aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2002-07-08 14:47:59 +0000
committerFrancois Pons <fpons@mandriva.com>2002-07-08 14:47:59 +0000
commit13a13f5ab7298492711ee8ff65f79eba6ea13269 (patch)
treecc289110af66ea3c0f6c84841c818242dcdf4b97 /URPM.xs
parentd29115d6bdf44b1bd35eb5b598e2e056cc752633 (diff)
downloadperl-URPM-13a13f5ab7298492711ee8ff65f79eba6ea13269.tar
perl-URPM-13a13f5ab7298492711ee8ff65f79eba6ea13269.tar.gz
perl-URPM-13a13f5ab7298492711ee8ff65f79eba6ea13269.tar.bz2
perl-URPM-13a13f5ab7298492711ee8ff65f79eba6ea13269.tar.xz
perl-URPM-13a13f5ab7298492711ee8ff65f79eba6ea13269.zip
0.08-2mdk
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs3
1 files changed, 2 insertions, 1 deletions
diff --git a/URPM.xs b/URPM.xs
index b2238ca..6890bf3 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -1632,9 +1632,10 @@ Pkg_set_rflags(pkg, ...)
STRLEN len;
char *s = SvPV(ST(i), len);
memcpy(new_rflags + total_len, s, len);
- new_rflags[total_len + len] = 0;
+ new_rflags[total_len + len] = '\t';
total_len += len + 1;
}
+ new_rflags[total_len - 1] = 0; /* but mark end-of-string correctly */
if (gimme == G_ARRAY && pkg->rflags != NULL) {
char *s = pkg->rflags;