summaryrefslogtreecommitdiff
path: root/bfd/bfd.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2004-08-16 01:14:42 +0000
committerAlan Modra <amodra@bigpond.net.au>2004-08-16 01:14:42 +0000
commit8697080b2d2d0fc9c0da013a03e824ea44855ff3 (patch)
tree9fce81e409cea68b9217647cad28d493ee91a22b /bfd/bfd.c
parent22326a2b361bb452c2168f48553b2c24248233f5 (diff)
downloadbinutils-redhat-8697080b2d2d0fc9c0da013a03e824ea44855ff3.tar.gz
* bfd.c (_bfd_default_error_handler): Account for doubled '%' in
free space available.
Diffstat (limited to 'bfd/bfd.c')
-rw-r--r--bfd/bfd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/bfd.c b/bfd/bfd.c
index b842027a66..d888eb1333 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)