ref: ac78c37f9d5dde4633f2544cd2272a274a57f2db
parent: fd4327327c7860095645a51783e863923870338a
author: stag019 <[email protected]>
date: Tue Feb 24 13:11:02 EST 2015
Add reallocarray to Makefile; clean up some things in main.c
--- a/Makefile
+++ b/Makefile
@@ -23,6 +23,7 @@
src/asm/symbol.o \
src/asm/locallex.o \
src/extern/err.o \
+ src/extern/reallocarray.o \
src/extern/strlcpy.o \
src/extern/strlcat.o
--- a/src/asm/main.c
+++ b/src/asm/main.c
@@ -185,7 +185,7 @@
if(cldefines_index >= cldefines_size)
{
cldefines_size *= 2;
- cldefines = reallocarray(cldefines, cldefines_size
+ cldefines = reallocarray(cldefines, cldefines_size,
2 * sizeof(void *));
if(!cldefines)
{
@@ -270,7 +270,8 @@
char *tzMainfile;
cldefines_size = 32;
- cldefines = reallocarray(cldefines_size, 2 * sizeof(void *));
+ cldefines = reallocarray(cldefines, cldefines_size,
+ 2 * sizeof(void *));
if(!cldefines)
{
fatalerror("No memory for command line defines");