bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] --adjust-extension bug and fix


From: Giuseppe Scrivano
Subject: Re: [Bug-wget] --adjust-extension bug and fix
Date: Wed, 02 Mar 2011 11:07:18 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Hi Tomasz,

thanks for your patch, I have just applied it.

Cheers,
Giuseppe



Tomasz Buchert <address@hidden> writes:

> Hi!
> I've run into a bug when using --adjust-extension. Basically, the
> files with '.htm' suffix had a suffix added, contrary to the definiton
> of this cmd line option. The fix attached is self-explanatory.
>
> Cheers!
> Tomek
>
> === modified file 'src/http.c'
> --- src/http.c        2011-02-23 09:37:48 +0000
> +++ src/http.c        2011-03-01 16:22:08 +0000
> @@ -3501,7 +3501,7 @@
>    if (len == 5)
>      {
>        strncpy (shortext, ext, len - 1);
> -      shortext[len - 2] = '\0';
> +      shortext[len - 1] = '\0';
>      }
>  
>    if (last_period_in_local_filename == NULL



reply via email to

[Prev in Thread] Current Thread [Next in Thread]