DragonFly users List (threaded) for 2007-11
DragonFly BSD
DragonFly users List (threaded) for 2007-11
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: va_copy() problem


From: Joerg Sonnenberger <joerg@xxxxxxxxxxxxxxxxx>
Date: Mon, 12 Nov 2007 21:14:12 +0100
Mail-followup-to: users@crater.dragonflybsd.org

On Mon, Nov 12, 2007 at 06:58:30PM +0000, Johannes Hofmann wrote:
> 		va_copy(va1, va);
> 		n = vsnprintf(s->str + s->len, s->size - s->len, format, va);
> 		va_end(va1);

va -> va1 in the call to vsnprintf. Also consider using vasprintf.

Joerg



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