From 0cf7fb9f25ce00a797653e697742b39ce848b623 Mon Sep 17 00:00:00 2001 From: Andrey Date: Mon, 25 Apr 2022 23:58:06 +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 26830b38..9522d6fb 100644 --- a/libs/main/core/pistring.cpp +++ b/libs/main/core/pistring.cpp @@ -236,10 +236,10 @@ void PIString::appendFromChars(const char * c, int s, const char * codepage) { const char ** pc; char * c_ = nullptr; if (s > 0) { - c_ = malloc(s+1); + c_ = (char*)malloc(s+1); memcpy(c_, c, s); c_[s] = '\0'; - pc = &c_; + pc = (const char **)&c_; } else { pc = &c; }