bug-wget
[Top][All Lists]
Advanced

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

Re: [Bug-wget] Support non-ASCII URLs


From: Giuseppe Scrivano
Subject: Re: [Bug-wget] Support non-ASCII URLs
Date: Thu, 17 Dec 2015 18:16:47 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Hi Tim,

thanks to have worked on this:

Tim Ruehsen <address@hidden> writes:

> diff --git a/src/iri.c b/src/iri.c
> index 6c6e8d3..354bfd9 100644
> --- a/src/iri.c
> +++ b/src/iri.c
> @@ -180,16 +180,10 @@ do_conversion (const char *tocode, const char 
> *fromcode, char const *in_org, siz
>          }
>        else if (errno == E2BIG) /* Output buffer full */
>          {
> -          char *new;
> -
>            tooshort++;
>            done = len;
> -          outlen = done + inlen * 2;
> -          new = xmalloc (outlen + 1);
> -          memcpy (new, s, done);
> -          xfree (s);
> -          s = new;
> -          len = outlen;
> +          len = outlen = done + inlen * 2;
> +          s = xrealloc(s, outlen + 1);

ACK with a space between "xrealloc" and '('  :-)

Regards,
Giuseppe




reply via email to

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