From 45fc9e4ac624b166dd7d4b99f87e2849e8447326 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 16 Aug 2004 01:14:42 +0000 Subject: [PATCH] * bfd.c (_bfd_default_error_handler): Account for doubled '%' in free space available. --- bfd/ChangeLog | 5 +++++ bfd/bfd.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 71597b60be8..6d38dbb66ff 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2004-08-16 Alan Modra + + * bfd.c (_bfd_default_error_handler): Account for doubled '%' in + free space available. + 2004-08-16 Alan Modra * pdp11.c (struct pdp11_aout_reloc_external): Delete. Replace diff --git a/bfd/bfd.c b/bfd/bfd.c index b842027a66b..d888eb13337 100644 --- 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) -- 2.30.2