utf8proc null-pointer handling

This commit is contained in:
Jack Andersen 2016-12-10 20:19:22 -10:00
parent ed7161b7f8
commit 8fce7ce161
1 changed files with 1 additions and 1 deletions

View File

@ -278,7 +278,7 @@ public:
{
UTF8Iterator it(m_it);
size_t ret = 0;
while (it.iter() < end)
while (it.iter() < end && *it != '\0')
{
++ret;
++it;