We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c49cec4 commit 1baeac2Copy full SHA for 1baeac2
extra-cmds/readtags-cmd.c
@@ -163,8 +163,10 @@ void tagEntryArrayPush (struct tagEntryArray *a, tagEntry *e)
163
{
164
if (a->count + 1 == a->length)
165
166
- if (a->length * 2 < a->length)
167
- perror("Too large array allocation");
+ if (a->length * 2 < a->length) {
+ fprintf(stderr, "too large array allocation");
168
+ exit(1);
169
+ }
170
171
struct tagEntryHolder *tmp = eRealloc (a->a, sizeof (a->a[0]) * (a->length * 2));
172
a->a = tmp;
0 commit comments