OSDN Git Service

* bfd.c (_bfd_default_error_handler): Account for doubled '%' in
authoramodra <amodra>
Mon, 16 Aug 2004 01:14:41 +0000 (01:14 +0000)
committeramodra <amodra>
Mon, 16 Aug 2004 01:14:41 +0000 (01:14 +0000)
free space available.

bfd/ChangeLog
bfd/bfd.c

index 71597b6..6d38dbb 100644 (file)
@@ -1,5 +1,10 @@
 2004-08-16  Alan Modra  <amodra@bigpond.net.au>
 
+       * bfd.c (_bfd_default_error_handler): Account for doubled '%' in
+       free space available.
+
+2004-08-16  Alan Modra  <amodra@bigpond.net.au>
+
        * pdp11.c (struct pdp11_aout_reloc_external): Delete.  Replace
        occurrences with bfd_btye * thoughout file.
 
index b842027..d888eb1 100644 (file)
--- a/bfd/bfd.c
+++ b/bfd/bfd.c
@@ -531,7 +531,9 @@ _bfd_default_error_handler (const char *fmt, ...)
                    }
                  while (--trim != 0);
                  *q = '\0';
+                 avail = extra;
                }
+             avail -= extra;
 
              /* Now double all '%' chars, shuffling the string as we go.  */
              while (extra != 0)