From 4fe51017039c78e98d4274c56570965a49967edc Mon Sep 17 00:00:00 2001 From: blub Date: Mon, 28 Dec 2009 10:24:32 +0000 Subject: [PATCH] fixed an inconsistency in u8_analyze git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9713 d7cf8633-e32d-0410-b094-e92efae38249 --- utf8lib.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/utf8lib.c b/utf8lib.c index c89ecdfb..07b3573d 100644 --- 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; -- 2.39.2