diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2012-06-29 15:45:39 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-06-29 15:45:39 +0200 |
commit | c522f1932aa2233c9fe847e449b5556723f8c186 (patch) | |
tree | 6c110943e210cf4c49103fbbee12ba6b0051f3ae /runtime/msg.c | |
parent | 10430a189af0ecdbdad6c2542280f6d397ec4752 (diff) | |
parent | b0a3e85e102c3e549574bf8f418ca643109f2884 (diff) | |
download | rsyslog-c522f1932aa2233c9fe847e449b5556723f8c186.tar.gz rsyslog-c522f1932aa2233c9fe847e449b5556723f8c186.tar.xz rsyslog-c522f1932aa2233c9fe847e449b5556723f8c186.zip |
Merge branch 'master-elasticsearch' into tmp
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 ec3dbfa1..a7df6928 100644 --- a/runtime/msg.c +++ b/runtime/msg.c @@ -2404,7 +2404,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); |