A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
try harder not to overflow that buffer
[simgrid.git]
/
src
/
xbt
/
cunit.c
diff --git
a/src/xbt/cunit.c
b/src/xbt/cunit.c
index
57a988c
..
e32f486
100644
(file)
--- 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 */
{
/* suite title pretty-printing */
{
- char suite_title[8
0
];
+ char suite_title[8
1
];
int suite_len = strlen(suite->title);
int i;
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] = ' ';
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[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] = '=';
sprintf(suite_title + 40 - (suite_len + 4) / 2, "[ %s ]", suite->title);
suite_title[40 + (suite_len + 5) / 2] = '=';