summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorAndre Lorbach <alorbach@adiscon.com>2011-08-11 10:58:57 +0200
committerAndre Lorbach <alorbach@adiscon.com>2011-08-11 10:58:57 +0200
commitb37a22e3c185b4f04cc8a41979d983a04eef7300 (patch)
tree3f74941bd435ca3e32f5c148ca191dd620e5b1d1 /runtime
parentb882a009284547852efbfee65c2348f729ff7053 (diff)
parentfcb98138a683c90e484e46eccb5c69e1034e1366 (diff)
downloadrsyslog-b37a22e3c185b4f04cc8a41979d983a04eef7300.tar.gz
rsyslog-b37a22e3c185b4f04cc8a41979d983a04eef7300.tar.xz
rsyslog-b37a22e3c185b4f04cc8a41979d983a04eef7300.zip
Merge branch 'v4-stable' into v4-beta
Diffstat (limited to 'runtime')
-rw-r--r--runtime/msg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/msg.c b/runtime/msg.c
index 6a01827c..6335f462 100644
--- a/runtime/msg.c
+++ b/runtime/msg.c
@@ -897,7 +897,7 @@ msg_t* MsgDup(msg_t* pOld)
*/
if(pOld->iLenTAG > 0) {
if(pOld->iLenTAG < CONF_TAG_BUFSIZE) {
- memcpy(pNew->TAG.szBuf, pOld->TAG.szBuf, pOld->iLenTAG);
+ memcpy(pNew->TAG.szBuf, pOld->TAG.szBuf, pOld->iLenTAG + 1);
} else {
if((pNew->TAG.pszTAG = srUtilStrDup(pOld->TAG.pszTAG, pOld->iLenTAG)) == NULL) {
msgDestruct(&pNew);