> @@ -296,21 +305,28 @@
>      else
>          size = 96;
>  
> +    va_copy(args_revolving, args);
>      while(1) {
>          string = malloc(size);
> -        if(!string)
> +        if(!string) {
> +            va_end(args_revolving);
>              return NULL;
> -        va_copy(args_copy, args);
> -        n = vsnprintf(string, size, f, args_copy);
> -        if(n >= 0 && n < size)
> +        }
> +        va_copy(args_copy2, args_revolving);

Why is args_revolving needed?  Can't we work with args here?

-- Juliusz

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Polipo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/polipo-users

Reply via email to