X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=src%2Fhttp-ntlm.c;h=fbba2c61e5d6d3a93edf2eabc1466843fbad73cc;hb=a9a2b34b052cfa903462124f59fbfeed7eaf374b;hp=4893e043078b06394fa8ab2fc0cfed4fb6fb6108;hpb=462e643a7e31676eceda23e634241f7b4d2cd7bb;p=wget diff --git a/src/http-ntlm.c b/src/http-ntlm.c index 4893e043..fbba2c61 100644 --- a/src/http-ntlm.c +++ b/src/http-ntlm.c @@ -1,5 +1,5 @@ /* NTLM code. - Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc. + Copyright (C) 2005, 2006, 2007, 2008 Free Software Foundation, Inc. Contributed by Daniel Stenberg. This file is part of GNU Wget. @@ -526,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);