fix against corrupted output in parallel logging
authorHarald Welte <laforge@gnumonks.org>
Sat, 2 Jul 2011 19:51:32 +0000 (21:51 +0200)
committerHarald Welte <laforge@gnumonks.org>
Sat, 2 Jul 2011 19:51:32 +0000 (21:51 +0200)
commitda127cbb3eb5674b09fa195d09b047f0b2914b7f
treeb170bdac092c91c3c7116765dad0694d6a0a9754
parent8264e09ca2f3bd93eba5eefa342267f303085629
fix against corrupted output in parallel logging

In 825607672215b7a12ea6e201a89cd5209f6d657f it was attempted to fix
a bug previously introduced by logging related changes.  The problem
is that a va_list can be corrupted after it has been used once, so
we need to va_copy before each successive use.

And if we copy it, we also need to use the copy, and not the original ;)
src/logging.c