X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/bee83c20e96f95cbdcc319c89758ff9e00f81343..7956846a8584348ea3a598b94b70a3801c910c4f:/src/xbt/xbt_log_layout_format.c?ds=sidebyside diff --git a/src/xbt/xbt_log_layout_format.c b/src/xbt/xbt_log_layout_format.c index f7ca02d260..67ab93d2cc 100644 --- a/src/xbt/xbt_log_layout_format.c +++ b/src/xbt/xbt_log_layout_format.c @@ -204,10 +204,10 @@ static void xbt_log_layout_format_dynamic(xbt_log_layout_t l, #undef check_overflow #define check_overflow \ - if (p-ev->buffer > XBT_LOG_BUFF_SIZE) { /* buffer overflow */ \ - xbt_log_layout_format_dynamic(l,ev,msg_fmt,app); \ - return;\ - } + if (p - ev->buffer >= XBT_LOG_BUFF_SIZE) { /* buffer overflow */ \ + xbt_log_layout_format_dynamic(l,ev,msg_fmt,app); \ + return; \ + } else ((void)0) #define show_it(data,letter) \ do { \