diff --git a/NEWS b/NEWS index 6a3a2c7d..e0be152a 100644 --- a/NEWS +++ b/NEWS @@ -17,6 +17,7 @@ procps-ng-NEXT * top: provide command line switch for CPU States * top: provides more accurate cpu usage at startup * top: display NUMA node under which a thread ran + * top: fix argument parsing quirk resulting in SEGV Redhat #1450429 * watch: define HOST_NAME_MAX where not defined Debian #830734 procps-ng-3.3.12 diff --git a/top/top.c b/top/top.c index a703ef14..b72e949c 100644 --- a/top/top.c +++ b/top/top.c @@ -548,7 +548,7 @@ static void bye_bye (const char *str) { fputs(str, stderr); exit(EXIT_FAILURE); } - if (Batch) putp("\n"); + if (Batch) fputs("\n", stdout); exit(EXIT_SUCCESS); } // end: bye_bye