Home
last modified time | relevance | path

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

/PHP-7.4/ext/fileinfo/libmagic/
H A Dapprentice.c585 char *p, *mfn; in file_apprentice() local
612 if ((mfn = estrdup(fn)) == NULL) { in file_apprentice()
625 efree(mfn); in file_apprentice()
629 fn = mfn; in file_apprentice()
642 efree(mfn); in file_apprentice()
1314 char mfn[MAXPATHLEN]; in apprentice_load() local
1322 if ((mflen = snprintf(mfn, sizeof(mfn), "%s/%s", fn, d.d_name)) < 0) { in apprentice_load()
1329 if (zend_stat(mfn, &st) == -1 || !S_ISREG(st.st_mode)) { in apprentice_load()
1344 filearr[files++] = estrndup(mfn, (mflen > sizeof(mfn) - 1)? sizeof(mfn) - 1: mflen); in apprentice_load()
/PHP-7.4/ext/fileinfo/
H A Dlibmagic.patch364 - free(mfn);
365 + efree(mfn);
373 - free(mfn);
374 + efree(mfn);
456 - char **filearr = NULL, *mfn;
487 + char mfn[MAXPATHLEN];
499 + if ((mflen = snprintf(mfn, sizeof(mfn), "%s/%s", fn, d.d_name)) < 0) {
509 - free(mfn);
521 - free(mfn);
528 - filearr[files++] = mfn;
[all …]

Completed in 39 milliseconds