diff options
| author | Andre Lorbach <alorbach@adiscon.com> | 2011-08-11 10:58:57 +0200 |
|---|---|---|
| committer | Andre Lorbach <alorbach@adiscon.com> | 2011-08-11 10:58:57 +0200 |
| commit | b37a22e3c185b4f04cc8a41979d983a04eef7300 (patch) | |
| tree | 3f74941bd435ca3e32f5c148ca191dd620e5b1d1 /runtime | |
| parent | b882a009284547852efbfee65c2348f729ff7053 (diff) | |
| parent | fcb98138a683c90e484e46eccb5c69e1034e1366 (diff) | |
Merge branch 'v4-stable' into v4-beta
Diffstat (limited to 'runtime')
| -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 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); |
