diff --git a/network/main/mkutils.c b/network/main/mkutils.c index 2b61a5b9e24..b548e1c02f2 100644 --- a/network/main/mkutils.c +++ b/network/main/mkutils.c @@ -600,7 +600,7 @@ NET_WritePostData(MWContext *context, memset(data_obj, 0, sizeof(struct WritePostDataData)); data_obj->last_line_was_complete = TRUE; - data_obj->buffer = (char *) PR_Malloc(POST_DATA_BUFFER_SIZE); + data_obj->buffer = (char *) PR_Calloc(1, POST_DATA_BUFFER_SIZE); if(!data_obj->buffer) {