]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fixed an inconsistency in u8_analyze
authorblub <blub@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 28 Dec 2009 10:24:32 +0000 (10:24 +0000)
committerblub <blub@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 28 Dec 2009 10:24:32 +0000 (10:24 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9713 d7cf8633-e32d-0410-b094-e92efae38249

utf8lib.c

index c89ecdfb8f9fbe4d699b8fbed09e50bfba6b8dc2..07b3573d8bb001ba430461177dcda73a34928b40 100644 (file)
--- a/utf8lib.c
+++ b/utf8lib.c
@@ -78,9 +78,13 @@ findchar:
                goto findchar;
        }
        if(i + bits > _maxlen) {
+               /*
                if (_start) *_start = i;
                if (_len) *_len = 0;
                return false;
+               */
+               ++i;
+               goto findchar;
        }
        // turn bt into a mask and give ch a starting value
        --bt;