aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2006-12-04 10:28:17 +0000
committerPascal Rigaux <pixel@mandriva.com>2006-12-04 10:28:17 +0000
commit82e8182e3e9aa64ea7f3ef8cc2cd652927f8fb7c (patch)
treedf7ca1b519c7a0f4a516843cf7e945c42bacf665 /URPM.xs
parentb125be1686a6e3ccbc0908ae0af3eacac341b72a (diff)
downloadperl-URPM-82e8182e3e9aa64ea7f3ef8cc2cd652927f8fb7c.tar
perl-URPM-82e8182e3e9aa64ea7f3ef8cc2cd652927f8fb7c.tar.gz
perl-URPM-82e8182e3e9aa64ea7f3ef8cc2cd652927f8fb7c.tar.bz2
perl-URPM-82e8182e3e9aa64ea7f3ef8cc2cd652927f8fb7c.tar.xz
perl-URPM-82e8182e3e9aa64ea7f3ef8cc2cd652927f8fb7c.zip
correctly set "\0"
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs1
1 files changed, 1 insertions, 0 deletions
diff --git a/URPM.xs b/URPM.xs
index 464b4db..6ea6dca 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -3033,6 +3033,7 @@ Urpm_parse_synthesis__XS(urpm, filename, ...)
p = buff;
while ((buff_len = gzread(f, p, sizeof(buff)-1-(p-buff))) >= 0 &&
(buff_len += p-buff)) {
+ buff[buff_len] = 0;
p = buff;
if ((eol = strchr(p, '\n')) != NULL) {
do {