Skip to content

Commit 516ac7e

Browse files
committed
- MFH: Fixed bug #46071 (finfo_open() segfaults with wrong file name on BSD)
1 parent 86660c6 commit 516ac7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/fileinfo/libmagic/apprentice.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1901,7 +1901,7 @@ apprentice_map(struct magic_set *ms, struct magic **magicp, uint32_t *nmagicp,
19011901
ptr = (uint32_t *)(void *)*magicp;
19021902
if (*ptr != MAGICNO) {
19031903
if (swap4(*ptr) != MAGICNO) {
1904-
file_error(ms, 0, "bad magic in `%s'");
1904+
file_error(ms, 0, "bad magic in `%s'", dbname);
19051905
goto error1;
19061906
}
19071907
needsbyteswap = 1;

0 commit comments

Comments
 (0)