Don't use non-literal strings as format string.
This commit is contained in:
parent
0d9b68baf9
commit
58d90b3498
|
@ -1,8 +1,8 @@
|
|||
/* $NetBSD: db_disasm.c,v 1.27 2012/03/23 15:46:44 matt Exp $ */
|
||||
/* $NetBSD: db_disasm.c,v 1.28 2013/07/04 23:00:23 joerg Exp $ */
|
||||
/* $OpenBSD: db_disasm.c,v 1.2 1996/12/28 06:21:48 rahnds Exp $ */
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.27 2012/03/23 15:46:44 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.28 2013/07/04 23:00:23 joerg Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/proc.h>
|
||||
|
@ -628,7 +628,7 @@ disasm_fields(const struct opcode *popcode, instr_t instr, vaddr_t loc,
|
|||
pstr += len; \
|
||||
} while(0)
|
||||
#define APP_PSTR(fmt, arg) ADD_LEN(snprintf(pstr, slen, (fmt), (arg)))
|
||||
#define APP_PSTRS(fmt) ADD_LEN(snprintf(pstr, slen, (fmt)))
|
||||
#define APP_PSTRS(fmt) ADD_LEN(snprintf(pstr, slen, "%s", (fmt)))
|
||||
|
||||
pstr = disasm_str;
|
||||
|
||||
|
|
Loading…
Reference in New Issue