diff options
author | asmodai <asmodai@FreeBSD.org> | 2001-08-23 21:46:59 +0000 |
---|---|---|
committer | asmodai <asmodai@FreeBSD.org> | 2001-08-23 21:46:59 +0000 |
commit | 1385a0dca8f9199ece158336f4c6a9f1e2e03c3e (patch) | |
tree | 9eaf7ab1d76f8fcbd7e07c789801580fabad62c2 /contrib/bind/bin/named/ns_stats.c | |
parent | b252fb87889ab3c43dd81af8dd28ab77c6f4a628 (diff) | |
download | FreeBSD-src-1385a0dca8f9199ece158336f4c6a9f1e2e03c3e.zip FreeBSD-src-1385a0dca8f9199ece158336f4c6a9f1e2e03c3e.tar.gz |
String format patch
Diffstat (limited to 'contrib/bind/bin/named/ns_stats.c')
-rw-r--r-- | contrib/bind/bin/named/ns_stats.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/bind/bin/named/ns_stats.c b/contrib/bind/bin/named/ns_stats.c index b823462..0af3e2f 100644 --- a/contrib/bind/bin/named/ns_stats.c +++ b/contrib/bind/bin/named/ns_stats.c @@ -1,6 +1,6 @@ #if !defined(lint) && !defined(SABER) static const char sccsid[] = "@(#)ns_stats.c 4.10 (Berkeley) 6/27/90"; -static const char rcsid[] = "$Id: ns_stats.c,v 8.32 2000/11/29 06:56:05 marka Exp $"; +static const char rcsid[] = "$Id: ns_stats.c,v 8.32.2.1 2001/08/09 14:04:49 marka Exp $"; #endif /* not lint */ /* @@ -407,13 +407,13 @@ ns_logstats(evContext ctx, void *uap, struct timespec due, sprintf(buffer2, " %s=%lu", p_type(i), typestats[i]); if (strlen(buffer) + strlen(buffer2) > sizeof(buffer) - 1) { - ns_info(ns_log_statistics, buffer); + ns_info(ns_log_statistics, "%s", buffer); strcpy(buffer, header); } strcat(buffer, buffer2); } } - ns_info(ns_log_statistics, buffer); + ns_info(ns_log_statistics, "%s", buffer); sprintf(header, "XSTATS %lu %lu", (u_long)timenow, (u_long)boottime); strcpy(buffer, header); @@ -421,12 +421,12 @@ ns_logstats(evContext ctx, void *uap, struct timespec due, sprintf(buffer2, " %s=%lu", statNames[i]?statNames[i]:"?", (u_long)globalStats[i]); if (strlen(buffer) + strlen(buffer2) > sizeof(buffer) - 1) { - ns_info(ns_log_statistics, buffer); + ns_info(ns_log_statistics, "%s", buffer); strcpy(buffer, header); } strcat(buffer, buffer2); } - ns_info(ns_log_statistics, buffer); + ns_info(ns_log_statistics, "%s", buffer); } static void |