Fix UTF-8 characters with an even number of bytes.

This commit is contained in:
yenatch
2018-06-30 19:41:46 -04:00
parent 33c984e456
commit e6e3cc474d

View File

@@ -32,12 +32,10 @@ int32_t readUTF8Char(char *dest, char *src)
dest[i] = src[i];
i++;
if (state == 0) {
dest[i] = '\0';
dest[++i] = '\0';
return i;
}
dest[i] = src[i];
}
}