From 8f785e7e46ebd9b3e79a210b8f7e5678eb6e624d Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 6 Nov 2009 14:18:43 +0100 Subject: [PATCH] Revert wrbuf_puts behavior to 2.1.54 --- src/wrbuf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wrbuf.c b/src/wrbuf.c index 01532c7..497a669 100644 --- a/src/wrbuf.c +++ b/src/wrbuf.c @@ -81,7 +81,8 @@ int wrbuf_write(WRBUF b, const char *buf, int size) int wrbuf_puts(WRBUF b, const char *buf) { - wrbuf_write(b, buf, strlen(buf)); + wrbuf_write(b, buf, strlen(buf) + 1); + (b->pos)--; /* don't include '\0' in count */ return 0; } -- 1.7.10.4