summaryrefslogtreecommitdiffstats
path: root/runtime/msg.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-06-29 15:45:39 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2012-06-29 15:45:39 +0200
commitc522f1932aa2233c9fe847e449b5556723f8c186 (patch)
tree6c110943e210cf4c49103fbbee12ba6b0051f3ae /runtime/msg.c
parent10430a189af0ecdbdad6c2542280f6d397ec4752 (diff)
parentb0a3e85e102c3e549574bf8f418ca643109f2884 (diff)
downloadrsyslog-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.c2
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);