summaryrefslogtreecommitdiff
path: root/gnu/usr.bin
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2002-07-16 19:57:59 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2002-07-16 19:57:59 +0000
commitbec699e480c4d418924af121754ac8b40cb49204 (patch)
treefa3e107aa5fb56e4522d06b5907f5429f24ca1e3 /gnu/usr.bin
parent90ebcc14b5bb8ba476be8b3880065c7085be47d8 (diff)
correct memset arguments; from Moritz Jodeit <moritz@jodeit.org> via
PR/2822.
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r--gnu/usr.bin/gas/subsegs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gnu/usr.bin/gas/subsegs.c b/gnu/usr.bin/gas/subsegs.c
index 3bf93e1fea3..0d2ee09c13a 100644
--- a/gnu/usr.bin/gas/subsegs.c
+++ b/gnu/usr.bin/gas/subsegs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subsegs.c,v 1.2 1998/02/15 18:49:00 niklas Exp $ */
+/* $OpenBSD: subsegs.c,v 1.3 2002/07/16 19:57:58 fgsch Exp $ */
/* subsegs.c - subsegments -
Copyright (C) 1987, 1990, 1991, 1992 Free Software Foundation, Inc.
@@ -24,7 +24,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: subsegs.c,v 1.2 1998/02/15 18:49:00 niklas Exp $";
+static char rcsid[] = "$OpenBSD: subsegs.c,v 1.3 2002/07/16 19:57:58 fgsch Exp $";
#endif
#include "as.h"
@@ -99,7 +99,7 @@ void
/* It won't be used=> is ok if obstack... */
/* pads the end of it for alignment. */
frag_now=(fragS *)obstack_alloc(&frags,SIZEOF_STRUCT_FRAG);
- memset(frag_now, SIZEOF_STRUCT_FRAG, 0);
+ memset(frag_now, 0, SIZEOF_STRUCT_FRAG);
/* This 1st frag will not be in any frchain. */
/* We simply give subseg_new somewhere to scribble. */
now_subseg = 42; /* Lie for 1st call to subseg_new. */
@@ -256,7 +256,7 @@ register subsegT subseg;
* This should be the only code that creates a frchainS.
*/
newP=(frchainS *)obstack_alloc(&frags,sizeof(frchainS));
- memset(newP, sizeof(frchainS), 0);
+ memset(newP, 0, sizeof(frchainS));
/* This begines on a good boundary */
/* because a obstack_done() preceeded it. */
/* It implies an obstack_done(), so we */