csv2tsv.c: add newline in error message - randomcrap - random crap programs of varying quality
(HTM) git clone git://git.codemadness.org/randomcrap
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit ddcd518569a506d6959e35128102270b638f5da4
(DIR) parent 87600405f11bd425fa628013b6b4604030afee09
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Thu, 23 Mar 2023 20:14:51 +0100
csv2tsv.c: add newline in error message
Diffstat:
M csv2tsv.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/csv2tsv.c b/csv2tsv.c
@@ -63,10 +63,10 @@ end:
PUTCHAR('\n');
if (ferror(stdin)) {
- fprintf(stderr, "read error: <stdin>");
+ fprintf(stderr, "read error: <stdin>\n");
return 2;
} else if (fflush(stdout) || ferror(stdout)) {
- fprintf(stderr, "write error: <stdout>");
+ fprintf(stderr, "write error: <stdout>\n");
return 2;
}