]> granicus.if.org Git - php/commitdiff
- Fixed bug #46071 (finfo_open() segfaults with wrong file name on BSD)
authorFelipe Pena <felipe@php.net>
Tue, 16 Sep 2008 22:21:40 +0000 (22:21 +0000)
committerFelipe Pena <felipe@php.net>
Tue, 16 Sep 2008 22:21:40 +0000 (22:21 +0000)
ext/fileinfo/libmagic/apprentice.c

index 1218bc7c881d90668f8c461e8b508502996aa291..adb68a42d3b15196fcbd584385ea67dba99571d7 100644 (file)
@@ -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;