aboutsummaryrefslogtreecommitdiff
path: root/bfd/doc/chew.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/doc/chew.c')
-rw-r--r--bfd/doc/chew.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/bfd/doc/chew.c b/bfd/doc/chew.c
index 52de92e..1511614 100644
--- a/bfd/doc/chew.c
+++ b/bfd/doc/chew.c
@@ -515,6 +515,10 @@ paramstuff (void)
for (idx = 0; idx < fname; idx++) /* Output type */
{
+ /* Omit a trailing whitespace. */
+ if (idx + 1 == fname && isspace ((unsigned char) at (tos, idx)))
+ break;
+
catchar (&out, at (tos, idx));
}