diff options
author | Andre Lorbach <alorbach@adiscon.com> | 2011-08-11 11:03:19 +0200 |
---|---|---|
committer | Andre Lorbach <alorbach@adiscon.com> | 2011-08-11 11:03:19 +0200 |
commit | 1eff0e2ebee9b6a53a6b77cdc106bbf3b5d62b55 (patch) | |
tree | d98787fbe589edaa95eae64da96432e4614b47d5 /runtime/msg.c | |
parent | b8d5cd810008f620c789c6969e8dab1bf2219239 (diff) | |
parent | 00d594348af514fbbbb5f581124ac524d507187f (diff) | |
download | rsyslog-1eff0e2ebee9b6a53a6b77cdc106bbf3b5d62b55.tar.gz rsyslog-1eff0e2ebee9b6a53a6b77cdc106bbf3b5d62b55.tar.xz rsyslog-1eff0e2ebee9b6a53a6b77cdc106bbf3b5d62b55.zip |
Merge branch 'v5-stable' into beta
Conflicts:
ChangeLog
configure.ac
doc/manual.html
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 d61aad79..98eb4b89 100644 --- a/runtime/msg.c +++ b/runtime/msg.c @@ -979,7 +979,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); |