From 360804ed4f7d3ab7375ba68885fed4584ef0a438 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 26 Mar 2018 12:00:40 +0200 Subject: ndr_string: Fix a signed/unsigned glitch Signed-off-by: Volker Lendecke Reviewed-by: Andreas Schneider --- librpc/ndr/ndr_string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'librpc/ndr') diff --git a/librpc/ndr/ndr_string.c b/librpc/ndr/ndr_string.c index 067f91781ee..42ba3cfccc1 100644 --- a/librpc/ndr/ndr_string.c +++ b/librpc/ndr/ndr_string.c @@ -636,7 +636,7 @@ _PUBLIC_ enum ndr_err_code ndr_pull_charset_to_null(struct ndr_pull *ndr, int nd _PUBLIC_ enum ndr_err_code ndr_push_charset(struct ndr_push *ndr, int ndr_flags, const char *var, uint32_t length, uint8_t byte_mul, charset_t chset) { - ssize_t required; + size_t required; if (NDR_BE(ndr) && chset == CH_UTF16) { chset = CH_UTF16BE; -- cgit v1.2.1