mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
strip_real_length() : bolds, underlines, etc. one character styling
left it to infinite loop git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1140 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
391a7e5710
commit
c3a6417c0f
@ -624,9 +624,11 @@ int strip_real_length(const char *str, int len,
|
|||||||
*last_color_len = 2;
|
*last_color_len = 2;
|
||||||
}
|
}
|
||||||
str += 2;
|
str += 2;
|
||||||
} else if (!IS_COLOR_CODE(*str)) {
|
} else {
|
||||||
if (len-- == 0)
|
if (!IS_COLOR_CODE(*str)) {
|
||||||
break;
|
if (len-- == 0)
|
||||||
|
break;
|
||||||
|
}
|
||||||
str++;
|
str++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user