diff --git a/libs/main/core/pistring.cpp b/libs/main/core/pistring.cpp index 03c3bf3b..00d6ac29 100644 --- a/libs/main/core/pistring.cpp +++ b/libs/main/core/pistring.cpp @@ -231,11 +231,11 @@ void PIString::appendFromChars(const char * c, int s, const char * codepage) { # else mbstate_t state; memset(&state, 0, sizeof(state)); - size_t len = mbsrtowcs(NULL, c, 0, &state); + size_t len = mbsrtowcs(NULL, &c, 0, &state); wchar_t wstr[len+1]; - mbsrtowcs(&wstr[0], c, len+1, &state); + mbsrtowcs(&wstr[0], &c, len+1, &state); resize(len); - for (int i=0 i 0) {