This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH]: backwards memset args
On Tue, Jul 16, 2002 at 10:59:49PM +0930, Alan Modra wrote:
> On Tue, Jul 16, 2002 at 10:14:50AM -0300, Federico G. Schwindt wrote:
> > This has been reported by Moritz Jodeit <moritz@jodeit.org> to the OpenBSD
> > bug tracking system.
>
> Thank you. Applying mainline and branch.
Actually, I applied this one to tc-z8k.c instead.
Index: gas/config/tc-z8k.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-z8k.c,v
retrieving revision 1.17
diff -u -r1.17 tc-z8k.c
--- gas/config/tc-z8k.c 8 Jun 2002 07:37:16 -0000 1.17
+++ gas/config/tc-z8k.c 16 Jul 2002 13:04:08 -0000
@@ -1005,7 +1005,7 @@
frag_wane (frag_now);
frag_new (0);
- memset (buffer, 20, 0);
+ memset (buffer, 0, sizeof (buffer));
class_ptr = this_try->byte_info;
for (nibble = 0; (c = *class_ptr++); nibble++)
--
Alan Modra
IBM OzLabs - Linux Technology Centre