From 1385a0dca8f9199ece158336f4c6a9f1e2e03c3e Mon Sep 17 00:00:00 2001 From: asmodai Date: Thu, 23 Aug 2001 21:46:59 +0000 Subject: String format patch --- contrib/bind/bin/host/host.c | 6 +++--- contrib/bind/bin/named/ns_ixfr.c | 6 +++--- contrib/bind/bin/named/ns_maint.c | 4 ++-- contrib/bind/bin/named/ns_req.c | 5 ++--- contrib/bind/bin/named/ns_stats.c | 10 +++++----- 5 files changed, 15 insertions(+), 16 deletions(-) (limited to 'contrib/bind/bin') diff --git a/contrib/bind/bin/host/host.c b/contrib/bind/bin/host/host.c index 9303ab1..6ec63df 100644 --- a/contrib/bind/bin/host/host.c +++ b/contrib/bind/bin/host/host.c @@ -1,5 +1,5 @@ #ifndef lint -static const char rcsid[] = "$Id: host.c,v 8.43.2.1 2001/04/26 02:56:07 marka Exp $"; +static const char rcsid[] = "$Id: host.c,v 8.43.2.2 2001/08/09 14:04:45 marka Exp $"; #endif /* not lint */ /* @@ -755,12 +755,12 @@ void print_hex_field (u_int8_t field[], int length, int width, char *pref) do { stop=(start+width)rcode = ns_r_formerr; key = NULL; 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 -- cgit v1.1