summaryrefslogtreecommitdiff
path: root/gnu/usr.bin
diff options
context:
space:
mode:
authormjl <mjl@NetBSD.org>2002-07-20 16:51:43 +0000
committermjl <mjl@NetBSD.org>2002-07-20 16:51:43 +0000
commit7fc6ed7c11d42013eebfcdf2b2ff910bbd168708 (patch)
treededfc5c3563390f2b76c937aaeeadeed28bcdba2 /gnu/usr.bin
parent856bd17f6605e7b0bfbca5e644e7e24d5d5db114 (diff)
Correct obviously wrong memset() args. OK'd by itojun.
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r--gnu/usr.bin/gas/subsegs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gnu/usr.bin/gas/subsegs.c b/gnu/usr.bin/gas/subsegs.c
index 7bc8ad2d33e..c25f4eaeb94 100644
--- a/gnu/usr.bin/gas/subsegs.c
+++ b/gnu/usr.bin/gas/subsegs.c
@@ -22,7 +22,7 @@
*/
#ifndef lint
-static char rcsid[] = "$Id: subsegs.c,v 1.4 1995/03/21 15:27:12 mycroft Exp $";
+static char rcsid[] = "$Id: subsegs.c,v 1.5 2002/07/20 16:51:44 mjl Exp $";
#endif
#include "as.h"
@@ -97,7 +97,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. */
@@ -254,7 +254,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 */