From 9402d3336a1115a40a004e5ab987651bea89c220 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Mon, 21 May 2012 17:45:48 +0200 Subject: property replacer lost one char when json escaping was necessary The character immediately in front of the first escape was lost. --- runtime/msg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime') diff --git a/runtime/msg.c b/runtime/msg.c index 9c7a2203..d35e92a7 100644 --- a/runtime/msg.c +++ b/runtime/msg.c @@ -2400,7 +2400,7 @@ jsonAddVal(uchar *pSrc, unsigned buflen, es_str_t **dst) /* we hope we have only few escapes... */ *dst = es_newStr(buflen+10); } else { - *dst = es_newStrFromBuf((char*)pSrc, i-1); + *dst = es_newStrFromBuf((char*)pSrc, i); } if(*dst == NULL) { ABORT_FINALIZE(RS_RET_OUT_OF_MEMORY); -- cgit