Browse Source

[2442] in CharStringTooLong what() msg, clarify it includes an extra octet.

JINMEI Tatuya 12 years ago
parent
commit
c366a4f8de
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/dns/rdata/generic/detail/char_string.cc

+ 1 - 1
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;
 }