2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-30 05:27:55 +00:00

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

This commit is contained in:
JINMEI Tatuya 2012-12-06 15:26:00 -08:00
parent ea88e8907a
commit c366a4f8de

View File

@ -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;
}