summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfgsch <fgsch@openbsd.org>2002-07-16 19:57:58 +0000
committerfgsch <fgsch@openbsd.org>2002-07-16 19:57:58 +0000
commitdcdd34843fc959041b34b585cb1f930603d21387 (patch)
treef8843c749731f20a294d1fc6f3a255cc2218f753
parentYou'd never believe it, but English IS my first language. (diff)
downloadwireguard-openbsd-dcdd34843fc959041b34b585cb1f930603d21387.tar.xz
wireguard-openbsd-dcdd34843fc959041b34b585cb1f930603d21387.zip
correct memset arguments; from Moritz Jodeit <moritz@jodeit.org> via
PR/2822.
-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 */