X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/06a803f9b52e0197f3fcd17b3330a1bbcdfd0faf..477fc68ab3dd1b5210d7db49144d90d0d9e57993:/src/xbt/xbt_log_layout_format.cpp diff --git a/src/xbt/xbt_log_layout_format.cpp b/src/xbt/xbt_log_layout_format.cpp index 6f488e4919..e07eca46dd 100644 --- a/src/xbt/xbt_log_layout_format.cpp +++ b/src/xbt/xbt_log_layout_format.cpp @@ -75,7 +75,8 @@ static int xbt_log_layout_format_doit(const s_xbt_log_layout_t* l, xbt_log_event int precision = -1; int length = -1; - for (char* q = static_cast(l->data) ; *q != '\0' ; q++) { + char* q = static_cast(l->data); + while (*q != '\0') { if (*q == '%') { q++; do { @@ -169,6 +170,7 @@ static int xbt_log_layout_format_doit(const s_xbt_log_layout_t* l, xbt_log_event *p = *q; check_overflow(1); } + q++; } *p = '\0';