diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2007-12-12 11:53:05 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2007-12-12 11:53:05 +0000 |
commit | 63e31963e2de2062299ae429782422cc88fb5027 (patch) | |
tree | 946d778c6e2d7878fe5ac8a8aec1326c5532e11e /msg.c | |
parent | 26121fcb315b13c9cf06132d4a8cdff0300ff2ea (diff) | |
download | rsyslog-63e31963e2de2062299ae429782422cc88fb5027.tar.gz rsyslog-63e31963e2de2062299ae429782422cc88fb5027.tar.xz rsyslog-63e31963e2de2062299ae429782422cc88fb5027.zip |
some cleanup (very minor)
Diffstat (limited to 'msg.c')
-rw-r--r-- | msg.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1190,7 +1190,7 @@ void MsgSetMSG(msg_t *pMsg, char* pszMSG) free(pMsg->pszMSG); pMsg->iLenMSG = strlen(pszMSG); - if((pMsg->pszMSG = malloc(pMsg->iLenMSG + 1)) != NULL) + if((pMsg->pszMSG = (uchar*) malloc(pMsg->iLenMSG + 1)) != NULL) memcpy(pMsg->pszMSG, pszMSG, pMsg->iLenMSG + 1); else dbgprintf("MsgSetMSG could not allocate memory for pszMSG buffer."); @@ -1205,7 +1205,7 @@ void MsgSetRawMsg(msg_t *pMsg, char* pszRawMsg) free(pMsg->pszRawMsg); pMsg->iLenRawMsg = strlen(pszRawMsg); - if((pMsg->pszRawMsg = malloc(pMsg->iLenRawMsg + 1)) != NULL) + if((pMsg->pszRawMsg = (uchar*) malloc(pMsg->iLenRawMsg + 1)) != NULL) memcpy(pMsg->pszRawMsg, pszRawMsg, pMsg->iLenRawMsg + 1); else dbgprintf("Could not allocate memory for pszRawMsg buffer."); |