diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2012-05-21 17:45:48 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-05-21 17:45:48 +0200 |
commit | 9402d3336a1115a40a004e5ab987651bea89c220 (patch) | |
tree | 78aa08fe733a32e5c52378cb5af2a7bd6f7ce29d /runtime/msg.c | |
parent | 54966fd878bcf1c52019e0ec977da4d7b0a9f52a (diff) | |
download | rsyslog-9402d3336a1115a40a004e5ab987651bea89c220.tar.gz rsyslog-9402d3336a1115a40a004e5ab987651bea89c220.tar.xz rsyslog-9402d3336a1115a40a004e5ab987651bea89c220.zip |
property replacer lost one char when json escaping was necessary
The character immediately in front of the first escape was lost.
Diffstat (limited to 'runtime/msg.c')
-rw-r--r-- | runtime/msg.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |