summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2023-09-23 12:16:29 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2023-09-23 12:18:20 -0700
commit2ed49718a8ff8710bfebf6c286df9e3b5df754c2 (patch)
tree3912bd6a088591830b98cdf1120603dc20097a2d
parentf59fbae7a1890b243c69f0ff20099c6d6aa93c4e (diff)
XdmcpWriteHeader: use calloc instead of malloc to alloc buffer
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--Write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Write.c b/Write.c
index ef7f030..7e13e97 100644
--- a/Write.c
+++ b/Write.c
@@ -42,7 +42,7 @@ XdmcpWriteHeader (
if ((int)buffer->size < 6 + (int)header->length)
{
- newData = (BYTE *) malloc(XDM_MAX_MSGLEN * sizeof (BYTE));
+ newData = calloc(XDM_MAX_MSGLEN, sizeof (BYTE));
if (!newData)
return FALSE;
free(buffer->data);