this might fix #5661, needs testing (#5775)

This commit is contained in:
red-001 2017-05-20 09:48:44 +01:00 committed by Loïc Blot
parent 673ac55a9d
commit 00972d42d7

@ -331,7 +331,7 @@ u32 ChatBuffer::formatChatLine(const ChatLine& line, u32 cols,
while (frag_length < remaining_in_input && while (frag_length < remaining_in_input &&
frag_length < remaining_in_output) frag_length < remaining_in_output)
{ {
if (isspace(line.text.getString()[in_pos + frag_length])) if (iswspace(line.text.getString()[in_pos + frag_length]))
space_pos = frag_length; space_pos = frag_length;
++frag_length; ++frag_length;
} }