From 54229947d3f9c3748fb19d6f2bb25d8863d4ff6e Mon Sep 17 00:00:00 2001 From: Michael Sawyer Date: Mon, 22 May 2000 22:41:24 +0000 Subject: [PATCH] Change strlen to sizeof. --- lib/dns/message.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dns/message.c b/lib/dns/message.c index 4e243925c5..3fe46ad41d 100644 --- a/lib/dns/message.c +++ b/lib/dns/message.c @@ -2468,7 +2468,7 @@ dns_message_pseudosectiontotext(dns_message_t *msg, dns_rdataset_t *ps = NULL; dns_name_t *name = NULL; isc_result_t result; - char buf[strlen("1234567890")]; + char buf[sizeof("1234567890")]; REQUIRE(DNS_MESSAGE_VALID(msg)); REQUIRE(target != NULL);