diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-09-23 12:16:29 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-09-23 12:18:20 -0700 |
commit | 2ed49718a8ff8710bfebf6c286df9e3b5df754c2 (patch) | |
tree | 3912bd6a088591830b98cdf1120603dc20097a2d | |
parent | f59fbae7a1890b243c69f0ff20099c6d6aa93c4e (diff) |
XdmcpWriteHeader: use calloc instead of malloc to alloc buffer
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | Write.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |