These patches look alright to me.
On Mon, Nov 05, 2012 at 17:43:55 +0100, Jakub Filak wrote:
if (cnt == sz - 1)
{ /* this should not happen but */
/* I guess, it's a bit better approach then simple failure */
^ than ;)
sz <<= 1;
tnt = xrealloc(tnt, sizeof(char) * sz);
}