wrbuf_cstr bit more thread safe YAZ-753
authorHeikki Levanto <heikki@indexdata.dk>
Tue, 8 Apr 2014 11:44:58 +0000 (13:44 +0200)
committerHeikki Levanto <heikki@indexdata.dk>
Tue, 8 Apr 2014 11:44:58 +0000 (13:44 +0200)
commit97fafedd350b74076d8a8e31e23102fa22d4b430
tree64b29efd84d1863b1c86f7bd6a2eda5268607c34
parentc00f4d99781f83c51fce80af10927023a4150331
wrbuf_cstr bit more thread safe  YAZ-753

Now it does not mess with the pos. Still not 100% safe, can have
a race condition when reallocating the buf, if it needs room for
the terminating null byte.
src/wrbuf.c