2001-01-24 Kazu Hirata <kazu@hxi.com>
authorKazu Hirata <kazu@codesourcery.com>
Wed, 24 Jan 2001 22:38:31 +0000 (22:38 +0000)
committerKazu Hirata <kazu@codesourcery.com>
Wed, 24 Jan 2001 22:38:31 +0000 (22:38 +0000)
* chew.c: Do not output a trailing whitespace.

bfd/doc/ChangeLog
bfd/doc/chew.c

index 549cdf6..e4b6063 100644 (file)
@@ -1,3 +1,7 @@
+2001-01-24  Kazu Hirata  <kazu@hxi.com>
+
+       * chew.c: Do not output a trailing whitespace.
+
 2000-11-06  Nick Clifton  <nickc@redhat.com>
 
        * bfd.texinfo: Add GNU Free Documentation License.
index 52de92e..1511614 100644 (file)
@@ -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));
        }