mirror of
https://github.com/fltk/fltk.git
synced 2026-05-23 07:46:09 +08:00
Fix "Long line crashes Fl_Hold_Browser" (#645)
This is in fact a regression introduced at commit be0f06e.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user