From: Erkin Alp Güney Date: Sat, 24 Sep 2016 15:55:24 +0000 (+0300) Subject: fix output X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=7b653ffa3f154d93b7ba99a1792040a45f04633f;p=FUZIX.git fix output replace printf() with just a string by a puts() no need to go on formatting just to print unmodified string --- 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++)