]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
terminate solvable2str() string when there is no arch
authorMichael Schroeder <mls@suse.de>
Fri, 25 Oct 2013 12:06:21 +0000 (14:06 +0200)
committerMichael Schroeder <mls@suse.de>
Fri, 25 Oct 2013 12:06:21 +0000 (14:06 +0200)
src/solvable.c

index 108d2f0fe9c865d20773becac0eec7c71eabcf81..eeb7b35a50c4ce16f27cabfbaf9ba0cdf9f7186e 100644 (file)
@@ -51,6 +51,7 @@ pool_solvable2str(Pool *pool, Solvable *s)
     {
       p[nl++] = '-';
       strncpy(p + nl, e, el);
+      p[nl + el] = 0;
     }
   if (al)
     {