From ada6c48f0609edd0c04836370228485a6b1859a0 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sat, 17 Aug 2013 19:15:11 +0100 Subject: include: carefulput: print determined char when unprintable char is found This is done to allow reuse of the functin in last(1). Signed-off-by: Sami Kerola --- term-utils/write.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'term-utils/write.c') diff --git a/term-utils/write.c b/term-utils/write.c index 83937d3b3..cb3b0444d 100644 --- a/term-utils/write.c +++ b/term-utils/write.c @@ -372,7 +372,7 @@ void wr_fputs(char *s) { char c; -#define PUTC(c) if (carefulputc(c, stdout) == EOF) \ +#define PUTC(c) if (carefulputc(c, stdout, '^') == EOF) \ err(EXIT_FAILURE, _("carefulputc failed")); while (*s) { c = *s++; -- cgit v1.2.3-55-g7522