Changed reallocarray to realloc

Some of my other systems fail to find reallocarray
stable
Justin Reichardt 2021-08-27 15:53:58 -05:00
parent 50cdb303b9
commit 1f6dfc6d90
1 changed files with 2 additions and 2 deletions

View File

@ -79,8 +79,8 @@ int parse_config(struct entry **entries){
else if ((c == '\n' || c == EOF) \
&& valtyp != CONTENTTYPE_BLANK){
(*entries)[0].entrytype++;
*entries = (struct entry *)reallocarray(*entries,\
(*j + 1), sizeof(struct entry));
*entries = (struct entry *)realloc(*entries,\
(*j + 1) * sizeof(struct entry));
if (*entries == NULL){return 1;}
j = &(*entries)[0].entrytype;
(*entries)[*j].entrytype=valtyp;