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