aboutsummaryrefslogtreecommitdiff
path: root/bfd/bfd.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2004-08-16 01:14:42 +0000
committerAlan Modra <amodra@gmail.com>2004-08-16 01:14:42 +0000
commit45fc9e4ac624b166dd7d4b99f87e2849e8447326 (patch)
treeb6e7fff79b5b5660f767dc2fa0f5f4fc9d413c33 /bfd/bfd.c
parent9dadfa79ec74a181b443ed5306d05b4da34a5dde (diff)
downloadgdb-45fc9e4ac624b166dd7d4b99f87e2849e8447326.zip
gdb-45fc9e4ac624b166dd7d4b99f87e2849e8447326.tar.gz
gdb-45fc9e4ac624b166dd7d4b99f87e2849e8447326.tar.bz2
* 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 b842027..d888eb1 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)