From dd11990ce0d3c523717c50e7a88177f5d92baa41 Mon Sep 17 00:00:00 2001 From: Michael Lutz Date: Sun, 6 Oct 2019 18:11:41 +0200 Subject: Fix 71a3e8346: strings need to be copied too. If it's not, iterating on it in a loop is quite pointless. --- src/error_gui.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/error_gui.cpp') diff --git a/src/error_gui.cpp b/src/error_gui.cpp index fb986edda..807bd48e1 100644 --- a/src/error_gui.cpp +++ b/src/error_gui.cpp @@ -78,6 +78,7 @@ ErrorMessageData::ErrorMessageData(const ErrorMessageData &data) : { memcpy(this->textref_stack, data.textref_stack, sizeof(this->textref_stack)); memcpy(this->decode_params, data.decode_params, sizeof(this->decode_params)); + memcpy(this->strings, data.strings, sizeof(this->strings)); for (size_t i = 0; i < lengthof(this->strings); i++) { if (this->strings[i] != nullptr) { this->strings[i] = stredup(this->strings[i]); -- cgit v1.2.3-54-g00ecf