Skip to content

Commit 3afc616

Browse files
committed
opal/util: Get rid of \0 from abort delay message
My recent commit 6b91edd had this bug. Signed-off-by: KAWASHIMA Takahiro <[email protected]>
1 parent 70107b3 commit 3afc616

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

opal/util/error.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,15 +230,15 @@ opal_delay_abort(void)
230230
"[%s:%05d] Looping forever "
231231
"(MCA parameter opal_abort_delay is < 0)\n",
232232
opal_process_info.nodename, (int) pid);
233-
write(STDERR_FILENO, msg, strlen(msg) + 1);
233+
write(STDERR_FILENO, msg, strlen(msg));
234234
while (1) {
235235
sleep(5);
236236
}
237237
} else {
238238
snprintf(msg, sizeof(msg),
239239
"[%s:%05d] Delaying for %d seconds before aborting\n",
240240
opal_process_info.nodename, (int) pid, delay);
241-
write(STDERR_FILENO, msg, strlen(msg) + 1);
241+
write(STDERR_FILENO, msg, strlen(msg));
242242
do {
243243
sleep(1);
244244
} while (--delay > 0);

0 commit comments

Comments
 (0)