From 0c0c79b32e6c28f5e87caf57d9302c263952db71 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 4 Oct 2018 11:05:46 +0200 Subject: tdb_unpack: Correct "len" arg for "B" format All but one of the users of the "B" format specifier passed in a pointer to uint32_t instead of what tdb_unpack expected, an "int". Because this is a purely internal API, change the tdb_unpack function and adjust that one caller. To reviewers: Please check carefully, thanks :-) Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/printing/printing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/printing/printing.c') diff --git a/source3/printing/printing.c b/source3/printing/printing.c index 105166ddf7d..e6caaa1222f 100644 --- a/source3/printing/printing.c +++ b/source3/printing/printing.c @@ -352,7 +352,7 @@ static int unpack_devicemode(TALLOC_CTX *mem_ctx, struct spoolss_DeviceMode *dm; enum ndr_err_code ndr_err; char *data = NULL; - int data_len = 0; + uint32_t data_len = 0; DATA_BLOB blob; int len = 0; -- cgit v1.2.1