Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/powerpc Don't use non-literal strings as fo...
details: https://anonhg.NetBSD.org/src/rev/21f9f9133b29
branches: trunk
changeset: 787819:21f9f9133b29
user: joerg <joerg%NetBSD.org@localhost>
date: Thu Jul 04 23:00:23 2013 +0000
description:
Don't use non-literal strings as format string.
diffstat:
sys/arch/powerpc/powerpc/db_disasm.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (23 lines):
diff -r 23eafdf0bbce -r 21f9f9133b29 sys/arch/powerpc/powerpc/db_disasm.c
--- a/sys/arch/powerpc/powerpc/db_disasm.c Thu Jul 04 22:59:58 2013 +0000
+++ b/sys/arch/powerpc/powerpc/db_disasm.c Thu Jul 04 23:00:23 2013 +0000
@@ -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 @@
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;
Home |
Main Index |
Thread Index |
Old Index