Searched refs:filearr (Results 1 – 2 of 2) sorted by relevance
/PHP-5.6/ext/fileinfo/libmagic/ |
H A D | apprentice.c | 1147 char **filearr = NULL; in apprentice_load() local 1196 mlen = maxfiles * sizeof(*filearr); in apprentice_load() 1197 if ((filearr = CAST(char **, in apprentice_load() 1198 erealloc(filearr, mlen))) == NULL) { in apprentice_load() 1205 filearr[files++] = estrndup(mfn, (mflen > sizeof(mfn) - 1)? sizeof(mfn) - 1: mflen); in apprentice_load() 1208 qsort(filearr, files, sizeof(*filearr), cmpstrp); in apprentice_load() 1210 load_1(ms, action, filearr[i], &errs, mset); in apprentice_load() 1211 efree(filearr[i]); in apprentice_load() 1213 efree(filearr); in apprentice_load()
|
/PHP-5.6/ext/fileinfo/ |
H A D | libmagic.patch | 359 - char **filearr = NULL, *mfn; 360 + char **filearr = NULL; 416 mlen = maxfiles * sizeof(*filearr); 417 if ((filearr = CAST(char **, 418 - realloc(filearr, mlen))) == NULL) { 428 - filearr[files++] = mfn; 433 qsort(filearr, files, sizeof(*filearr), cmpstrp); 436 - free(filearr[i]); 437 + efree(filearr[i]); 439 - free(filearr); [all …]
|
Completed in 12 milliseconds