Searched refs:filearr (Results 1 – 2 of 2) sorted by relevance
/PHP-5.3/ext/fileinfo/libmagic/ |
H A D | apprentice.c | 757 char **filearr = NULL, mfn[MAXPATHLEN]; local 799 mlen = maxfiles * sizeof(*filearr); 800 if ((filearr = CAST(char **, 801 realloc(filearr, mlen))) == NULL) { 808 filearr[files++] = estrndup(mfn, mflen); 811 qsort(filearr, files, sizeof(*filearr), cmpstrp); 813 load_1(ms, action, filearr[i], &errs, &marray, 815 efree(filearr[i]); 817 free(filearr);
|
/PHP-5.3/ext/fileinfo/ |
H A D | libmagic.patch | 322 - char **filearr = NULL, *mfn; 324 + char **filearr = NULL, mfn[MAXPATHLEN]; 381 if ((filearr = CAST(char **, 382 realloc(filearr, mlen))) == NULL) { 391 - filearr[files++] = mfn; 392 + filearr[files++] = estrndup(mfn, mflen); 396 qsort(filearr, files, sizeof(*filearr), cmpstrp); 398 load_1(ms, action, filearr[i], &errs, &marray, 400 - free(filearr[i]); 401 + efree(filearr[i]); [all …]
|
Completed in 23 milliseconds