From c366a4f8deb99014add34a7c79715beaeb1d63f3 Mon Sep 17 00:00:00 2001 From: JINMEI Tatuya Date: Thu, 6 Dec 2012 15:26:00 -0800 Subject: [PATCH] [2442] in CharStringTooLong what() msg, clarify it includes an extra octet. --- src/lib/dns/rdata/generic/detail/char_string.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/dns/rdata/generic/detail/char_string.cc b/src/lib/dns/rdata/generic/detail/char_string.cc index b08111ac10..fb4c9b41db 100644 --- a/src/lib/dns/rdata/generic/detail/char_string.cc +++ b/src/lib/dns/rdata/generic/detail/char_string.cc @@ -86,7 +86,7 @@ strToCharString(const MasterToken::StringRegion& str_region, } if (result.size() > MAX_CHARSTRING_LEN + 1) { // '+ 1' due to the len field isc_throw(CharStringTooLong, "character-string is too long: " << - result.size() << " bytes"); + (result.size() - 1) << "(+1) characters"); } result[0] = result.size() - 1; }