fix format string called with too few arguments

This commit is contained in:
Lowly Worm 2018-11-11 16:08:28 -08:00
parent b90cb5da65
commit 80d87b9be4

View File

@ -1807,7 +1807,7 @@ static int apprentice_map(RMagic *ms, struct r_magic **magicp, ut32 *nmagicp, co
#ifdef QUICK
if ((mm = mmap (0, (size_t)st.st_size, PROT_READ, //OPENBSDBUG |PROT_WRITE,
MAP_PRIVATE|MAP_FILE, fd, (off_t)0)) == MAP_FAILED) {
file_error (ms, errno, "cannot map `%s'"); //, dbname);
file_error (ms, errno, "cannot map `%s'", dbname);
goto error1;
}
#define RET 2