diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-01-11 18:18:22 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-01-11 18:18:22 +0100 |
| commit | bd1e759771d42dbeb0793ea9a3574380449839e6 (patch) | |
| tree | 07a39dac862f710a04ff2d98a82a48f3f13d9040 | |
| parent | 9210e3efbf789a15bef1d9e84b335a4c43c0e25d (diff) | |
Fix "Long line crashes Fl_Hold_Browser" (#645)
This is in fact a regression introduced at commit be0f06e.
| -rw-r--r-- | src/fl_draw.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fl_draw.cxx b/src/fl_draw.cxx index 17a6a24bf..04ebbc6e0 100644 --- a/src/fl_draw.cxx +++ b/src/fl_draw.cxx @@ -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; |
