diff options
Diffstat (limited to 'util-linux')
-rw-r--r-- | util-linux/more.c | 4 |
1 files changed, 1 insertions, 3 deletions
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(); |