Searched refs:mfn (Results 1 – 2 of 2) sorted by relevance
/php-src/ext/fileinfo/libmagic/ |
H A D | apprentice.c | 665 char *p, *mfn; in file_apprentice() local 692 if ((mfn = estrdup(fn)) == NULL) { in file_apprentice() 705 efree(mfn); in file_apprentice() 709 fn = mfn; in file_apprentice() 722 efree(mfn); in file_apprentice() 1487 char mfn[MAXPATHLEN]; in apprentice_load() local 1495 if ((mflen = snprintf(mfn, sizeof(mfn), "%s/%s", fn, d.d_name)) < 0) { in apprentice_load() 1502 if (zend_stat(mfn, &st) == -1 || !S_ISREG(st.st_mode)) { in apprentice_load() 1517 filearr[files++] = estrndup(mfn, (mflen > sizeof(mfn) - 1)? sizeof(mfn) - 1: mflen); in apprentice_load()
|
/php-src/ext/fileinfo/ |
H A D | libmagic.patch | 271 - free(mfn); 272 + efree(mfn); 280 - free(mfn); 281 + efree(mfn); 363 - char **filearr = NULL, *mfn; 394 + char mfn[MAXPATHLEN]; 406 + if ((mflen = snprintf(mfn, sizeof(mfn), "%s/%s", fn, d.d_name)) < 0) { 416 - free(mfn); 430 - free(mfn); 438 - filearr[files++] = mfn; [all …]
|
Completed in 17 milliseconds