diff --git a/top/top.c b/top/top.c index f4f82be4..951c240c 100644 --- a/top/top.c +++ b/top/top.c @@ -417,7 +417,9 @@ static void bye_bye (const char *str) { fputs(str, stderr); exit(EXIT_FAILURE); } - if (Batch) fputs("\n", stdout); + if (Batch) { + write(fileno(stdout), "\n", sizeof("\n")); + } exit(EXIT_SUCCESS); } // end: bye_bye