From: Denys Vlasenko Date: Mon, 13 Dec 2010 13:31:59 +0000 (+0100) Subject: more: smaller version of previous fix X-Git-Tag: 1_19_0~459 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0d1d0f6e54e1980462c9d07c8b94e56cf13cbf08;p=oweals%2Fbusybox.git more: smaller version of previous fix Signed-off-by: Denys Vlasenko --- diff --git a/util-linux/more.c b/util-linux/more.c index ecac92821..c424a0e4b 100644 --- a/util-linux/more.c +++ b/util-linux/more.c @@ -191,9 +191,7 @@ int more_main(int argc UNUSED_PARAM, char **argv) } /* My small mind cannot fathom backspaces and UTF-8 */ putchar(c); - - if (ferror(stdout)) /* if tty was destroyed (closed xterm, etc) */ - goto end; + die_if_ferror_stdout(); /* if tty was destroyed (closed xterm, etc) */ } fclose(file); fflush_all();