Home
last modified time | relevance | path

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

/PHP-8.3/ext/fileinfo/libmagic/
H A Dapprentice.c666 char *p, *mfn; in file_apprentice() local
693 if ((mfn = estrdup(fn)) == NULL) { in file_apprentice()
706 efree(mfn); in file_apprentice()
710 fn = mfn; in file_apprentice()
723 efree(mfn); in file_apprentice()
1486 char mfn[MAXPATHLEN]; in apprentice_load() local
1494 if ((mflen = snprintf(mfn, sizeof(mfn), "%s/%s", fn, d.d_name)) < 0) { in apprentice_load()
1501 if (zend_stat(mfn, &st) == -1 || !S_ISREG(st.st_mode)) { in apprentice_load()
1516 filearr[files++] = estrndup(mfn, (mflen > sizeof(mfn) - 1)? sizeof(mfn) - 1: mflen); in apprentice_load()
/PHP-8.3/ext/fileinfo/
H A Dlibmagic.patch264 - free(mfn);
265 + efree(mfn);
273 - free(mfn);
274 + efree(mfn);
356 - char **filearr = NULL, *mfn;
387 + char mfn[MAXPATHLEN];
399 + if ((mflen = snprintf(mfn, sizeof(mfn), "%s/%s", fn, d.d_name)) < 0) {
409 - free(mfn);
423 - free(mfn);
431 - filearr[files++] = mfn;
[all …]

Completed in 27 milliseconds