X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fhttp-ntlm.c;h=fbba2c61e5d6d3a93edf2eabc1466843fbad73cc;hp=321d70d2144517801aacace614cb05d2ce4abe64;hb=123f5c39669abc055987d69a311785c861494c87;hpb=76780021d822779f839bbf85883292e15eb3f587 diff --git a/src/http-ntlm.c b/src/http-ntlm.c index 321d70d2..fbba2c61 100644 --- a/src/http-ntlm.c +++ b/src/http-ntlm.c @@ -28,8 +28,6 @@ Corresponding Source for a non-source form of such a combination shall include the source code for the parts of OpenSSL used as well as that of the covered work. */ -#define USE_GNULIB_ALLOC - #include "wget.h" /* NTLM details: @@ -528,7 +526,7 @@ ntlm_output (struct ntlmdata *ntlm, const char *user, const char *passwd, /* Make sure that the user and domain strings fit in the target buffer before we copy them there. */ - if(size + userlen + domlen >= sizeof(ntlmbuf)) + if(((size_t) size + userlen + domlen) >= sizeof(ntlmbuf)) return NULL; memcpy(&ntlmbuf[size], domain, domlen);