run make amalgamate

This commit is contained in:
Théo DELRIEU 2018-06-18 10:53:51 +02:00
parent 2b37d7ed86
commit 2c920a1032
No known key found for this signature in database
GPG key ID: A5A505438C20539A
3 changed files with 316 additions and 176 deletions

View file

@ -414,7 +414,7 @@ class serializer
else
{
// we finish reading, but do not accept: string was incomplete
std::string sn(3,'\0');
std::string sn(3, '\0');
snprintf(&sn[0], sn.size(), "%.2X", static_cast<uint8_t>(s.back()));
JSON_THROW(type_error::create(316, "incomplete UTF-8 string; last byte: 0x" + sn));
}