summaryrefslogtreecommitdiff
path: root/isomac.c
diff options
context:
space:
mode:
Diffstat (limited to 'isomac.c')
-rw-r--r--isomac.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/isomac.c b/isomac.c
index 074d11f823..f1d2d7d4a1 100644
--- a/isomac.c
+++ b/isomac.c
@@ -294,6 +294,17 @@ get_null_defines (void)
}
puts (result[result_len - 1]);
}
+ if (result_len == result_max)
+ {
+ result_max += 1;
+ result = realloc (result, result_max * sizeof (char **));
+ if (result == NULL)
+ {
+ puts ("No more memory.");
+ exit (1);
+ }
+ }
+ result[result_len] = NULL;
fclose (input);
remove (TMPFILE);