Home
last modified time | relevance | path

Searched refs:maxmagic (Results 1 – 2 of 2) sorted by relevance

/PHP-5.3/ext/fileinfo/libmagic/
H A Dapprentice.c130 private size_t maxmagic = 0; variable
766 maxmagic = MAXMAGIS;
767 marray = ecalloc(maxmagic, sizeof(*marray));
1188 if (*nmentryp == maxmagic) {
1191 maxmagic += ALLOC_INCR;
1192 mp = erealloc(*mentryp, sizeof(*mp) * maxmagic);
/PHP-5.3/ext/fileinfo/
H A Dlibmagic.patch55 private size_t maxmagic = 0;
335 - maxmagic = MAXMAGIS;
336 - if ((marray = CAST(struct magic_entry *, calloc(maxmagic,
338 - file_oomem(ms, maxmagic * sizeof(*marray));
341 + maxmagic = MAXMAGIS;
342 + marray = ecalloc(maxmagic, sizeof(*marray));
459 maxmagic += ALLOC_INCR;
461 - realloc(*mentryp, sizeof(*mp) * maxmagic))) ==
463 - file_oomem(ms, sizeof(*mp) * maxmagic);
468 + mp = erealloc(*mentryp, sizeof(*mp) * maxmagic);

Completed in 18 milliseconds