Fix "Long line crashes Fl_Hold_Browser" (#645)

This is in fact a regression introduced at commit be0f06e.
This commit is contained in:
ManoloFLTK 2023-01-11 18:18:22 +01:00
parent 9210e3efbf
commit bd1e759771

View File

@ -84,6 +84,7 @@ static const char* expand_text_(const char* from, char*& buf, int maxbuf, double
size_t delta_o = (o - local_buf);
size_t delta_end = (word_end - local_buf);
local_buf = (char*)realloc(local_buf, l_local_buff);
buf = local_buf;
e = local_buf + l_local_buff - 4; // update pointers to buffer content
o = local_buf + delta_o;
word_end = local_buf + delta_end;