Silence compiler warning

Though this really should be taken care of properly, see
https://stackoverflow.com/questions/14562845/why-does-passing-char-as-const-char-generate-a-warning
This commit is contained in:
Michał Janiszewski committed 2016-03-19 12:56:35 +01:00
1 parent cb9a4860f3
commit 843014eac2
1 file changed
+1 -1
+1 -1
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 {