From 8e82ef9c324c12096f722801518178d0c92e9f80 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Fri, 13 Jan 2012 13:34:43 +0100 Subject: http_negotiate_sspi.c: fix compiler warning --- lib/http_negotiate_sspi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/http_negotiate_sspi.c') diff --git a/lib/http_negotiate_sspi.c b/lib/http_negotiate_sspi.c index a63de7dc5..f1ab33d6d 100644 --- a/lib/http_negotiate_sspi.c +++ b/lib/http_negotiate_sspi.c @@ -29,6 +29,7 @@ #include "urldata.h" #include "sendf.h" #include "rawstr.h" +#include "warnless.h" #include "curl_base64.h" #include "http_negotiate.h" #include "curl_memory.h" @@ -189,7 +190,7 @@ int Curl_input_negotiate(struct connectdata *conn, bool proxy, out_buff_desc.cBuffers = 1; out_buff_desc.pBuffers = &out_sec_buff; - out_sec_buff.cbBuffer = neg_ctx->max_token_length; + out_sec_buff.cbBuffer = curlx_uztoul(neg_ctx->max_token_length); out_sec_buff.BufferType = SECBUFFER_TOKEN; out_sec_buff.pvBuffer = neg_ctx->output_token; @@ -199,7 +200,7 @@ int Curl_input_negotiate(struct connectdata *conn, bool proxy, in_buff_desc.cBuffers = 1; in_buff_desc.pBuffers = &in_sec_buff; - in_sec_buff.cbBuffer = input_token_len; + in_sec_buff.cbBuffer = curlx_uztoul(input_token_len); in_sec_buff.BufferType = SECBUFFER_TOKEN; in_sec_buff.pvBuffer = input_token; } -- cgit v1.2.3