From 2323f864f33c60213033fb423cb49e563c815e86 Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Fri, 16 Mar 2012 00:00:00 -0500 Subject: [PATCH] top: correct miscellaneous omission, typo and buglet Signed-off-by: Jim Warner --- NEWS | 2 +- top/top.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/NEWS b/NEWS index 42489c3e..8a92be8f 100644 --- a/NEWS +++ b/NEWS @@ -3,7 +3,7 @@ procps-ng-3.3.3 * watch -g command repeats until something changes * top can read old toprc configuration files * Changed labels of kB etc to KiB Debian #662786 - + * top supports input paste once again Debian #663334 procps-ng-3.3.1 --> procps-ng-3.3.2 -------------------------------- diff --git a/top/top.c b/top/top.c index da57ab08..9e284536 100644 --- a/top/top.c +++ b/top/top.c @@ -949,7 +949,7 @@ static char *linein (const char *prompt) { * . true line editing, not just destructive backspace * . an input limit that's sensitive to current screen dimensions * . immediate signal response without the need to wait for '\n' - * However, the user will loose the ability to paste keystrokes + * However, the user will lose the ability to paste keystrokes * when this function is chosen over the smaller alternative above! */ static char *linein (const char *prompt) { // thank goodness memmove allows the two strings to overlap @@ -2337,7 +2337,7 @@ static void configs_read (void) { default_or_error: #ifdef RCFILE_NOERR { RCF_t rcdef = DEF_RCFILE; - flcose(fp); + fclose(fp); Rc = rcdef; for (i = 0 ; i < GROUPSMAX; i++) Winstk[i].rc = Rc.win[i];