This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: bfd_error_handler extension


Might as well be correct..

	* bfd.c (_bfd_default_error_handler): Account for doubled '%' in
	free space available.

Index: bfd/bfd.c
===================================================================
RCS file: /cvs/src/src/bfd/bfd.c,v
retrieving revision 1.65
diff -u -p -r1.65 bfd.c
--- bfd/bfd.c	13 Aug 2004 03:15:55 -0000	1.65
+++ bfd/bfd.c	16 Aug 2004 00:14:16 -0000
@@ -531,7 +531,9 @@ _bfd_default_error_handler (const char *
 		    }
 		  while (--trim != 0);
 		  *q = '\0';
+		  avail = extra;
 		}
+	      avail -= extra;
 
 	      /* Now double all '%' chars, shuffling the string as we go.  */
 	      while (extra != 0)

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]