From 7b653ffa3f154d93b7ba99a1792040a45f04633f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Erkin=20Alp=20G=C3=BCney?= Date: Sat, 24 Sep 2016 18:55:24 +0300 Subject: [PATCH] fix output replace printf() with just a string by a puts() no need to go on formatting just to print unmodified string --- Applications/util/cut.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Applications/util/cut.c b/Applications/util/cut.c index 6e501b33..31c700dd 100644 --- a/Applications/util/cut.c +++ b/Applications/util/cut.c @@ -24,6 +24,7 @@ #include #include #include +#include #include #define MAX_FIELD 80 /* Pointers to the beginning of each field @@ -159,7 +160,7 @@ void cut(void) switch (mode) { case DUMP_STDIN: - printf("%s", line); + puts(line, stdout); break; case OPTIONF: @@ -180,7 +181,7 @@ void cut(void) } if (maxcol == 1) { if (flag_s != SET) - printf("%s", line); + fputs(line, stdout); } else { for (i = 0; i < num_args; i++) { for (j = args[i * 2]; j <= args[i * 2 + 1]; j++) -- 2.34.1