summaryrefslogtreecommitdiff
path: root/source4/rpc_server/spoolss
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-03-05 16:34:17 +0100
committerGünther Deschner <gd@samba.org>2010-03-05 16:34:17 +0100
commit91ff11d50458a951ab0adc9b37bcb0ef4ee09e15 (patch)
tree06ed6df2091e49a63aae15eacdfeaffc62e4bd46 /source4/rpc_server/spoolss
parent6cbb8fdc48c5e418a56eb4348bcf6c66142ea0bf (diff)
downloadsamba-91ff11d50458a951ab0adc9b37bcb0ef4ee09e15.tar.gz
samba-91ff11d50458a951ab0adc9b37bcb0ef4ee09e15.tar.bz2
samba-91ff11d50458a951ab0adc9b37bcb0ef4ee09e15.zip
s4-spoolss: fix dcesrv_spoolss_GetPrinterData build.
really not my day today... Guenther
Diffstat (limited to 'source4/rpc_server/spoolss')
-rw-r--r--source4/rpc_server/spoolss/dcesrv_spoolss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/rpc_server/spoolss/dcesrv_spoolss.c b/source4/rpc_server/spoolss/dcesrv_spoolss.c
index 30ed721b12..6bd52b6f19 100644
--- a/source4/rpc_server/spoolss/dcesrv_spoolss.c
+++ b/source4/rpc_server/spoolss/dcesrv_spoolss.c
@@ -581,7 +581,7 @@ static WERROR dcesrv_spoolss_GetPrinterData(struct dcesrv_call_state *dce_call,
r->out.needed = talloc_zero(mem_ctx, uint32_t);
W_ERROR_HAVE_NO_MEMORY(r->out.needed);
- r->out.data = talloc_zero_array(mem_ctx, uint8_t, r->in.needed);
+ r->out.data = talloc_zero_array(mem_ctx, uint8_t, r->in.offered);
W_ERROR_HAVE_NO_MEMORY(r->out.data);
DCESRV_PULL_HANDLE_WERR(h, r->in.handle, DCESRV_HANDLE_ANY);