File pwlib-1.10.10-pstring-fix.diff of Package pwlib

Index: pwlib-1.10.4/src/ptlib/common/contain.cxx
===================================================================
--- pwlib-1.10.4.orig/src/ptlib/common/contain.cxx
+++ pwlib-1.10.4/src/ptlib/common/contain.cxx
@@ -2465,7 +2465,7 @@ PString & PString::vsprintf(const char *
   PAssert(SetSize(2000), POutOfMemory);
   ::vsprintf(theArray+len, fmt, arg);
 #else
-  PINDEX size = 0;
+  PINDEX size = len;
   do {
     size += 1000;
     PAssert(SetSize(size), POutOfMemory);
openSUSE Build Service is sponsored by