X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6b28daccf7142bd4b00e9eee1cd63daa90ae4ad9..d664010d2425396c67fff7b612212a8542b5b821:/src/xbt/xbt_log_layout_simple.c diff --git a/src/xbt/xbt_log_layout_simple.c b/src/xbt/xbt_log_layout_simple.c index ddb77e929b..e56adc8e6f 100644 --- a/src/xbt/xbt_log_layout_simple.c +++ b/src/xbt/xbt_log_layout_simple.c @@ -46,8 +46,7 @@ static void xbt_log_layout_simple_dynamic(xbt_log_layout_t l, xbt_strbuff_append(buff, loc_buff); - if (vasprintf(&p, fmt, ev->ap_copy) == -1) - xbt_die("vasprintf failed"); + p = bvprintf(fmt, ev->ap_copy); xbt_strbuff_append(buff, p); free(p);