Fix an array over flow, detected by compiling with C++ compilers. This fix is mainly for Windows build.
This commit was SVN r20744.
Этот коммит содержится в:
родитель
a8002c0f04
Коммит
a8cb7d2ab1
@ -760,7 +760,7 @@ static int pretty_print_vpids(orte_job_t *job) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void pretty_print_dashed_line(int len) {
|
static void pretty_print_dashed_line(int len) {
|
||||||
static const char dashes[8] = "--------";
|
static const char dashes[9] = "--------";
|
||||||
|
|
||||||
while (len >= 8) {
|
while (len >= 8) {
|
||||||
printf("%8.8s", dashes);
|
printf("%8.8s", dashes);
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user