From ca8839f0977eca949ea7bd592afe49a2aa20c84c Mon Sep 17 00:00:00 2001 From: Andrey Date: Mon, 25 Apr 2022 23:34:16 +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 541c0dcc..51b239c8 100644 --- a/libs/main/core/pistring.cpp +++ b/libs/main/core/pistring.cpp @@ -242,9 +242,9 @@ void PIString::appendFromChars(const char * c, int s, const char * codepage) { } else { pc = c; } - size_t len = mbsrtowcs(NULL, &pc, 0, &state); + size_t len = mbsrtowcs(NULL, (const char**)&pc, 0, &state); wchar_t wstr[len+1]; - mbsrtowcs(&wstr[0], &pc, len+1, &state); + mbsrtowcs(&wstr[0], (const char**)&pc, len+1, &state); enlarge(len); for (size_t i=0; i