1
0
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:
Timo Sirainen 2001-01-22 19:35:07 +00:00 committed by cras
parent 391a7e5710
commit c3a6417c0f

View File

@ -624,9 +624,11 @@ int strip_real_length(const char *str, int len,
*last_color_len = 2;
}
str += 2;
} else if (!IS_COLOR_CODE(*str)) {
} else {
if (!IS_COLOR_CODE(*str)) {
if (len-- == 0)
break;
}
str++;
}
}