- Fix off by one (*blush*)
authorMichael Schroeder <mls@suse.de>
Tue, 11 Mar 2008 11:19:25 +0000 (11:19 +0000)
committerMichael Schroeder <mls@suse.de>
Tue, 11 Mar 2008 11:19:25 +0000 (11:19 +0000)
src/poolid.c

index d1e449e48a92cb6fe630833c18ffe773e77776d8..35b521dfc4159711ebea07c21b2b6d038c02c4c2 100644 (file)
@@ -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;
 }