Module Name:    src
Committed By:   joerg
Date:           Thu Jul  4 23:00:23 UTC 2013

Modified Files:
        src/sys/arch/powerpc/powerpc: db_disasm.c

Log Message:
Don't use non-literal strings as format string.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/arch/powerpc/powerpc/db_disasm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/powerpc/powerpc/db_disasm.c
diff -u src/sys/arch/powerpc/powerpc/db_disasm.c:1.27 src/sys/arch/powerpc/powerpc/db_disasm.c:1.28
--- src/sys/arch/powerpc/powerpc/db_disasm.c:1.27	Fri Mar 23 15:46:44 2012
+++ src/sys/arch/powerpc/powerpc/db_disasm.c	Thu Jul  4 23:00:23 2013
@@ -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 *popco
 		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;
 

Reply via email to