aboutsummaryrefslogtreecommitdiff
path: root/readline/examples/rlcat.c
diff options
context:
space:
mode:
Diffstat (limited to 'readline/examples/rlcat.c')
-rw-r--r--readline/examples/rlcat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/readline/examples/rlcat.c b/readline/examples/rlcat.c
index fa9e06f..b494241 100644
--- a/readline/examples/rlcat.c
+++ b/readline/examples/rlcat.c
@@ -137,7 +137,7 @@ fcopy(fp)
if (vflag && isascii ((unsigned char)c) && isprint((unsigned char)c) == 0)
{
x = rl_untranslate_keyseq (c);
- if (fputs (x, stdout) != 0)
+ if (fputs (x, stdout) == EOF)
return 1;
}
else if (putchar (c) == EOF)