> ... ap2[0] would be writing to > memory referrenced by some uninitialized pointer. > > No assumptions should be made about what va_list actually is. > Use va_copy() macro to clone va_list. Honestly, I googled out this solution on some gcc support list. I'll try it with va_copy. M.