Merge pull request #3150 from janisozaur/develop

Silence compiler warning
This commit is contained in:
Ted John 2016-03-19 11:58:53 +00:00
commit 3699c42c61
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ utf8 * safe_strtrunc(utf8 * text, size_t size)
char *ch = text;
char *last = text;
uint32 codepoint;
while ((codepoint = utf8_get_next(ch, &ch)) != 0) {
while ((codepoint = utf8_get_next(ch, (const utf8 **)&ch)) != 0) {
if (ch <= sourceLimit) {
last = ch;
} else {