diff --git a/CMakeLists.txt b/CMakeLists.txt index 2b721fb5..53406e5a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,7 +6,7 @@ endif() project(PIP) set(PIP_MAJOR 5) set(PIP_MINOR 5) -set(PIP_REVISION 2) +set(PIP_REVISION 3) set(PIP_SUFFIX ) set(PIP_COMPANY SHS) set(PIP_DOMAIN org.SHS) diff --git a/libs/main/text/pistring.cpp b/libs/main/text/pistring.cpp index ec09bf65..534bc955 100644 --- a/libs/main/text/pistring.cpp +++ b/libs/main/text/pistring.cpp @@ -206,7 +206,10 @@ PIString PIString::dtos(const double num, char format, int precision) { if (wr > 4) wr = 4; f[2 + wr] = format; f[3 + wr] = 0; - pisprintf(f, num); + char ch[256]; + piZeroMemory(ch, 256); + snprintf(ch, 256, f, num); + return PIStringAscii(ch).replaceAll(',', '.'); } #undef pisprintf