From bd1e759771d42dbeb0793ea9a3574380449839e6 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Wed, 11 Jan 2023 18:18:22 +0100 Subject: Fix "Long line crashes Fl_Hold_Browser" (#645) This is in fact a regression introduced at commit be0f06e. --- src/fl_draw.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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; -- cgit v1.2.3