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

Re: varargs related bug in gtk-gnutella



On Sun, Jul 21, 2002 at 01:17:49PM +0200, Michel Dänzer wrote:
> 
> Can a varargs-savvy developer with spare time please have a look at bug
> #152512?

You're right.  Using a va_list after it has been passed to a function
which uses it has undefined behaviour, IIRC.  You probably want to call
va_copy, pass the copy to the child function, and then (to be
technically correct) va_end it in the caller.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer


-- 
To UNSUBSCRIBE, email to debian-powerpc-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: