From: Felipe Pena Date: Tue, 16 Sep 2008 22:21:40 +0000 (+0000) Subject: - Fixed bug #46071 (finfo_open() segfaults with wrong file name on BSD) X-Git-Tag: BEFORE_HEAD_NS_CHANGE~370 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4fc7e69dd501961f61de229eb2455e2824e5417e;p=php - Fixed bug #46071 (finfo_open() segfaults with wrong file name on BSD) --- diff --git a/ext/fileinfo/libmagic/apprentice.c b/ext/fileinfo/libmagic/apprentice.c index 1218bc7c88..adb68a42d3 100644 --- a/ext/fileinfo/libmagic/apprentice.c +++ b/ext/fileinfo/libmagic/apprentice.c @@ -1899,7 +1899,7 @@ internal_loaded: ptr = (uint32_t *)(void *)*magicp; if (*ptr != MAGICNO) { if (swap4(*ptr) != MAGICNO) { - file_error(ms, 0, "bad magic in `%s'"); + file_error(ms, 0, "bad magic in `%s'", dbname); goto error1; } needsbyteswap = 1;