* src/context.c (print_context_function): Do not print

trailing white space in a context header.
This commit is contained in:
Paul Eggert 2006-09-05 14:04:57 +00:00
parent 32625c5025
commit 19397f6b83
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2006-09-04 Jim Meyering <jim@meyering.net>
* src/context.c (print_context_function): Do not print
trailing white space in a context header.
2006-05-09 Paul Eggert <eggert@cs.ucla.edu>
* src/cmp.c (cmp): The previous fix wasn't quite right either, as

View File

@ -137,6 +137,8 @@ print_context_function (FILE *out, char const *function)
putc (' ', out);
for (i = 0; i < 40 && function[i] != '\n'; i++)
continue;
while (0 < i && isspace ((unsigned char) function[i - 1]))
i--;
fwrite (function, sizeof (char), i, out);
}