From: Michael Schroeder Date: Tue, 11 Mar 2008 11:19:25 +0000 (+0000) Subject: - Fix off by one (*blush*) X-Git-Tag: BASE-SuSE-Code-12_1-Branch~824 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4804c5b010e040bb02723ce083f1cd66945db954;p=platform%2Fupstream%2Flibsolv.git - Fix off by one (*blush*) --- diff --git a/src/poolid.c b/src/poolid.c index d1e449e..35b521d 100644 --- a/src/poolid.c +++ b/src/poolid.c @@ -229,7 +229,7 @@ dep2str(Pool *pool, Id id) char *p; if (!ISRELDEP(id)) return pool->ss.stringspace + pool->ss.strings[id]; - p = pool_alloctmpspace(pool, dep2strlen(pool, id)); + p = pool_alloctmpspace(pool, dep2strlen(pool, id) + 1); dep2strcpy(pool, p, id); return p; }