Fix wrbuf_putc + wrbuf_cstr assert YAZ-760
authorAdam Dickmeiss <adam@indexdata.dk>
Fri, 18 Apr 2014 17:40:51 +0000 (19:40 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Fri, 18 Apr 2014 17:44:31 +0000 (19:44 +0200)
commit169256b8c16c13191e2627f49441c1b76809e02b
tree33db7830788c4c8eb51d33eaa64a45717497fe86
parent5b8a2e421275656cd355e49169e2868a5b13ed2d
Fix wrbuf_putc + wrbuf_cstr assert YAZ-760

Change the meaning of WRBUF size. Just allocate size + 1 instead
of size. This means we can safely store \0 in pos. Simplify xrealloc
use in wrbuf_grow.

Conflicts:
src/wrbuf.c
src/wrbuf.c