Fix bug causing lockups in multibyte locale's.

SVN revision: 13666
This commit is contained in:
Kim Woelders 2005-03-09 22:55:50 +00:00
parent c28ecf59b0
commit a0e9a9695d
1 changed files with 1 additions and 1 deletions

View File

@ -459,7 +459,7 @@ TextstateDrawText(TextState * ts, Window win, const char *text, int x, int y,
while (ret2.width > textwidth_limit)
{
nuke_count++;
if (nuke_count > len)
if (nuke_count > wc_len)
{
int mlen;