From 44c52c40f1aee034e5626d7c0cfa1684d5e7a481 Mon Sep 17 00:00:00 2001 From: Andrey Date: Mon, 25 Apr 2022 23:38:09 +0300 Subject: [PATCH] linux PIString fix --- libs/main/core/pistring.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/main/core/pistring.cpp b/libs/main/core/pistring.cpp index b3338317..2d953ada 100644 --- a/libs/main/core/pistring.cpp +++ b/libs/main/core/pistring.cpp @@ -235,10 +235,10 @@ void PIString::appendFromChars(const char * c, int s, const char * codepage) { memset(&state, 0, sizeof(state)); const char ** pc; if (s > 0) { - const char c_ [s+1]; + char c_ [s+1]; memcpy(c_, c, s); c_[s] = '\0'; - pc = &c_; + pc = &((const char *)c_); } else { pc = &c; }