summaryrefslogtreecommitdiff
path: root/source3/rpc_parse
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2005-04-23 18:07:01 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:56:41 -0500
commit2e0cac8e3eb021aa8f5cad4ce8b72f98036af639 (patch)
treec2a8ad74f394b8c7a7a6286697a5edf91ef6611f /source3/rpc_parse
parent57eb9f47d058cc3c841aca11404bae2fed5367e4 (diff)
downloadsamba-2e0cac8e3eb021aa8f5cad4ce8b72f98036af639.tar.gz
samba-2e0cac8e3eb021aa8f5cad4ce8b72f98036af639.tar.bz2
samba-2e0cac8e3eb021aa8f5cad4ce8b72f98036af639.zip
r6445: Make us survive the PARANOID_MALLOC_CHECKER. Should we enable that for
--enable-developer=yes? Volker (This used to be commit 61d40ac60dd9c8c9bbcf92e4fc57fe1d706bc721)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r--source3/rpc_parse/parse_eventlog.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/rpc_parse/parse_eventlog.c b/source3/rpc_parse/parse_eventlog.c
index 9bb0a13169..be21f0f74e 100644
--- a/source3/rpc_parse/parse_eventlog.c
+++ b/source3/rpc_parse/parse_eventlog.c
@@ -372,7 +372,9 @@ BOOL eventlog_io_r_read_eventlog(const char *desc,
/* Now pad with whitespace until the end of the response buffer */
- r_u->end_of_entries_padding = (uint8 *)calloc(q_u->max_read_size - r_u->num_bytes_in_resp, sizeof(uint8));
+ r_u->end_of_entries_padding =
+ SMB_CALLOC_ARRAY(uint8,
+ q_u->max_read_size - r_u->num_bytes_in_resp);
if(!(prs_uint8s(False, "end of entries padding", ps,
depth, r_u->end_of_entries_padding,