From d6ba51e4bc54dcf0cd5a06ae8f0e510830d024f9 Mon Sep 17 00:00:00 2001 From: Andrey Date: Mon, 25 Apr 2022 23:44:30 +0300 Subject: [PATCH] linux PIString fix --- libs/main/core/pistring.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/main/core/pistring.cpp b/libs/main/core/pistring.cpp index 2e1e0c02..9b00c3f4 100644 --- a/libs/main/core/pistring.cpp +++ b/libs/main/core/pistring.cpp @@ -205,7 +205,7 @@ void PIString::appendFromChars(const char * c, int s, const char * codepage) { UErrorCode e((UErrorCode)0); UConverter * cc = ucnv_open(codepage, &e); if (cc) { - if (s == -1) s = strlen(s); + if (s == -1) s = strlen(c); enlarge(s); // UChar * ucs = new UChar[s]; // memset(ucs, 0, s * sizeof(UChar));