From 63e31963e2de2062299ae429782422cc88fb5027 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Wed, 12 Dec 2007 11:53:05 +0000 Subject: some cleanup (very minor) --- msg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'msg.c') diff --git a/msg.c b/msg.c index d9128478..5b211b8a 100644 --- a/msg.c +++ b/msg.c @@ -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."); -- cgit