X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/dff9e15c44ab6340d27215957c56fa72fad246a2..9a17ee50f5ac1e197040595cbf31dedb6dda5ab6:/src/xbt/cunit.c diff --git a/src/xbt/cunit.c b/src/xbt/cunit.c index 15d6afa101..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,15 +276,15 @@ 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] = '='; if (!suite->enabled) - sprintf(suite_title + 70, " DISABLED "); + snprintf(suite_title + 70, 11, " DISABLED "); fprintf(stderr, "\n%s\n", suite_title); }