Home
last modified time | relevance | path

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

/PHP-7.1/ext/fileinfo/libmagic/
H A Dapprentice.c570 char *p, *mfn; in file_apprentice() local
598 if ((mfn = estrdup(fn)) == NULL) { in file_apprentice()
611 efree(mfn); in file_apprentice()
615 fn = mfn; in file_apprentice()
628 efree(mfn); in file_apprentice()
1247 char mfn[MAXPATHLEN]; in apprentice_load() local
1255 if ((mflen = snprintf(mfn, sizeof(mfn), "%s/%s", fn, d.d_name)) < 0) { in apprentice_load()
1262 if (zend_stat(mfn, &st) == -1 || !S_ISREG(st.st_mode)) { in apprentice_load()
1277 filearr[files++] = estrndup(mfn, (mflen > sizeof(mfn) - 1)? sizeof(mfn) - 1: mflen); in apprentice_load()
/PHP-7.1/ext/fileinfo/
H A Dlibmagic.patch367 - free(mfn);
368 + efree(mfn);
376 - free(mfn);
377 + efree(mfn);
459 - char **filearr = NULL, *mfn;
490 + char mfn[MAXPATHLEN];
500 + if ((mflen = snprintf(mfn, sizeof(mfn), "%s/%s", fn, d.d_name)) < 0) {
510 - free(mfn);
522 - free(mfn);
529 - filearr[files++] = mfn;
[all …]

Completed in 15 milliseconds