diff --git a/contrib/diff/util.c b/contrib/diff/util.c index a1e46dc95729..67c4af939e6f 100644 --- a/contrib/diff/util.c +++ b/contrib/diff/util.c @@ -485,7 +485,7 @@ print_1_line (line_flag, line) output_1_line (text, limit, flag_format, line_flag); if ((!line_flag || line_flag[0]) && limit[-1] != '\n') - fputc ('\n', out); + fprintf (out, "\n\\ No newline at end of file\n"); } /* Output a line from TEXT up to LIMIT. Without -t, output verbatim.