Commit c366a4f8 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

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

parent ea88e890
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment