Home
last modified time | relevance | path

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

/PHP-8.1/ext/fileinfo/libmagic/
H A Dapprentice.c615 char *p, *mfn; in file_apprentice() local
642 if ((mfn = estrdup(fn)) == NULL) { in file_apprentice()
655 efree(mfn); in file_apprentice()
659 fn = mfn; in file_apprentice()
672 efree(mfn); in file_apprentice()
1354 char mfn[MAXPATHLEN]; in apprentice_load() local
1362 if ((mflen = snprintf(mfn, sizeof(mfn), "%s/%s", fn, d.d_name)) < 0) { in apprentice_load()
1369 if (zend_stat(mfn, &st) == -1 || !S_ISREG(st.st_mode)) { in apprentice_load()
1384 filearr[files++] = estrndup(mfn, (mflen > sizeof(mfn) - 1)? sizeof(mfn) - 1: mflen); in apprentice_load()
/PHP-8.1/ext/fileinfo/
H A Dlibmagic.patch319 - free(mfn);
320 + efree(mfn);
328 - free(mfn);
329 + efree(mfn);
411 - char **filearr = NULL, *mfn;
442 + char mfn[MAXPATHLEN];
454 + if ((mflen = snprintf(mfn, sizeof(mfn), "%s/%s", fn, d.d_name)) < 0) {
464 - free(mfn);
478 - free(mfn);
486 - filearr[files++] = mfn;
[all …]

Completed in 26 milliseconds