summaryrefslogtreecommitdiff
path: root/source/rpc_server/spoolss
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-12-03 07:20:30 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:06:20 -0500
commiteec698254f67365f27b4b7569fa982e22472aca1 (patch)
tree33bc805a8e95e25fa16a31476d19c363e239b5b1 /source/rpc_server/spoolss
parentb0f6e21481745d1b2ced28d9ed6f09f6ffd99562 (diff)
downloadsamba-eec698254f67365f27b4b7569fa982e22472aca1.tar.gz
r4055: fixed more places to use type safe allocation macros
Diffstat (limited to 'source/rpc_server/spoolss')
-rw-r--r--source/rpc_server/spoolss/dcesrv_spoolss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/rpc_server/spoolss/dcesrv_spoolss.c b/source/rpc_server/spoolss/dcesrv_spoolss.c
index 17c23dcba84..25210913fef 100644
--- a/source/rpc_server/spoolss/dcesrv_spoolss.c
+++ b/source/rpc_server/spoolss/dcesrv_spoolss.c
@@ -168,7 +168,7 @@ static WERROR spoolss_EnumPrinters(struct dcesrv_call_state *dce_call, TALLOC_CT
goto done;
}
- r->out.buffer = (DATA_BLOB *)talloc(mem_ctx, sizeof(DATA_BLOB));
+ r->out.buffer = talloc_p(mem_ctx, DATA_BLOB);
if (!r->out.buffer) {
result = WERR_NOMEM;