summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils/opcodes/z8kgen.c
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/binutils/opcodes/z8kgen.c')
-rw-r--r--gnu/usr.bin/binutils/opcodes/z8kgen.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gnu/usr.bin/binutils/opcodes/z8kgen.c b/gnu/usr.bin/binutils/opcodes/z8kgen.c
index 544634e70d9..e786bbb4c3d 100644
--- a/gnu/usr.bin/binutils/opcodes/z8kgen.c
+++ b/gnu/usr.bin/binutils/opcodes/z8kgen.c
@@ -893,8 +893,7 @@ void
internal ()
{
int c = count ();
- struct op *new = malloc (sizeof (struct
- op) * c);
+ struct op *new = xmalloc (sizeof (struct op) * c);
struct op *p = opt;
memcpy (new, p, c * sizeof (struct op));
@@ -953,7 +952,7 @@ gas ()
struct op *p = opt;
int idx = 0;
char *oldname = "";
- struct op *new = malloc (sizeof (struct op) * c);
+ struct op *new = xmalloc (sizeof (struct op) * c);
memcpy (new, p, c * sizeof (struct op));