From: mquinson Date: Sat, 27 Oct 2007 15:02:13 +0000 (+0000) Subject: Ooops. When restarting the logging action with dynamic buffer because we overflowed... X-Git-Tag: v3.3~883 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/e0d8c0134b3c64af8d5dfeaec79b36945c9560c8 Ooops. When restarting the logging action with dynamic buffer because we overflowed the static one, use the copy of the vaargs, not the original ones (which were already used by static action) git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4919 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/xbt/xbt_log_layout_simple.c b/src/xbt/xbt_log_layout_simple.c index 0ae848048e..ecfcf901dd 100644 --- a/src/xbt/xbt_log_layout_simple.c +++ b/src/xbt/xbt_log_layout_simple.c @@ -42,7 +42,7 @@ static void xbt_log_layout_simple_dynamic(xbt_log_layout_t l, xbt_strbuff_append(buff,ev->buffer); - vasprintf(&p,fmt,ev->ap); + vasprintf(&p,fmt,ev->ap_copy); xbt_strbuff_append(buff,p); free(p);