X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/339db441e4b8f8c63a287a3dcc5ca911d32a7151..4980d2e1e2f581b79412db8482b7c83487789b0d:/src/xbt/cunit.c diff --git a/src/xbt/cunit.c b/src/xbt/cunit.c index 57a988c6e9..e32f4866df 100644 --- a/src/xbt/cunit.c +++ b/src/xbt/cunit.c @@ -267,7 +267,7 @@ static int xbt_test_suite_run(xbt_test_suite_t suite) /* suite title pretty-printing */ { - char suite_title[80]; + char suite_title[81]; int suite_len = strlen(suite->title); int i; @@ -276,10 +276,10 @@ static int xbt_test_suite_run(xbt_test_suite_t suite) suite->title, suite_len); suite_title[0] = ' '; - for (i = 1; i < 79; i++) + for (i = 1; i < 80; i++) suite_title[i] = '='; suite_title[i++] = '\n'; - suite_title[79] = '\0'; + suite_title[80] = '\0'; sprintf(suite_title + 40 - (suite_len + 4) / 2, "[ %s ]", suite->title); suite_title[40 + (suite_len + 5) / 2] = '=';