On Mon, 30 Jul 2001, Ben Collins wrote: > > I realise that both reuse same va_list more that once. The following > > probram demonstrate this bug: > > stdarg is implemented in gcc, AFAIK.
And stdarg doesn't have these issues? The problem is that va_list isn't a pointer on powerpc so it gets modified across calls. Saving the initial va_list state and restoring it before reuse should solve this for varargs. Michael