summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2013-10-25 14:06:21 +0200
committerMichael Schroeder <mls@suse.de>2013-10-25 14:06:21 +0200
commit6289a1aa74db6eab63b17640d8008705423adc64 (patch)
tree3f3ba2129e2ec847742a1f18ecc1fe413bd8230c /src
parent3544498a8def70b4094c2fbbb7421abbac1cc6ea (diff)
downloadlibsolv-6289a1aa74db6eab63b17640d8008705423adc64.tar.gz
libsolv-6289a1aa74db6eab63b17640d8008705423adc64.tar.bz2
libsolv-6289a1aa74db6eab63b17640d8008705423adc64.zip
terminate solvable2str() string when there is no arch
Diffstat (limited to 'src')
-rw-r--r--src/solvable.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/solvable.c b/src/solvable.c
index 108d2f0..eeb7b35 100644
--- a/src/solvable.c
+++ b/src/solvable.c
@@ -51,6 +51,7 @@ pool_solvable2str(Pool *pool, Solvable *s)
{
p[nl++] = '-';
strncpy(p + nl, e, el);
+ p[nl + el] = 0;
}
if (al)
{