Thanks, fixed and pushed.

Regards, Tim

On 22.02.20 00:04, Gisle Vanem wrote:
> Hi list.
> 
> Just built Wget (master) using clang-cl and noticed this important
> warning:
>   http.c(874,11): warning:
>   ordered comparison between pointer and integer ('size_t' (aka
> 'unsigned int') and 'char *')
>    if (len < buf)
>         ~~~ ^ ~~~
> 
> For the line:
>   if (len < buf)
>     copy = buf;
> 
> (which should always be true).
> 
> Surely it should read:
>   if (len < sizeof(buf))
>     copy = buf;
> 
> 

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to