Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/misc Don't use argument as direct format string.
details: https://anonhg.NetBSD.org/src/rev/cb9084ad0a89
branches: trunk
changeset: 759374:cb9084ad0a89
user: joerg <joerg%NetBSD.org@localhost>
date: Tue Dec 07 20:10:53 2010 +0000
description:
Don't use argument as direct format string.
diffstat:
lib/libc/misc/stack_protector.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 5b2fe1234327 -r cb9084ad0a89 lib/libc/misc/stack_protector.c
--- a/lib/libc/misc/stack_protector.c Tue Dec 07 19:51:02 2010 +0000
+++ b/lib/libc/misc/stack_protector.c Tue Dec 07 20:10:53 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: stack_protector.c,v 1.4 2009/11/17 20:46:20 drochner Exp $ */
+/* $NetBSD: stack_protector.c,v 1.5 2010/12/07 20:10:53 joerg Exp $ */
/* $OpenBSD: stack_protector.c,v 1.10 2006/03/31 05:34:44 deraadt Exp $ */
/*
@@ -28,7 +28,7 @@
*
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: stack_protector.c,v 1.4 2009/11/17 20:46:20 drochner Exp $");
+__RCSID("$NetBSD: stack_protector.c,v 1.5 2010/12/07 20:10:53 joerg Exp $");
#ifdef _LIBC
#include "namespace.h"
@@ -93,7 +93,7 @@
#ifdef _LIBC
/* This may fail on a chroot jail... */
- syslog_ss(LOG_CRIT, &sdata, msg);
+ syslog_ss(LOG_CRIT, &sdata, "%s", msg);
#else
xprintf("%s: %s\n", getprogname(), msg);
#endif
Home |
Main Index |
Thread Index |
Old Index