blob: 9842abc9b82a0b13428333efbe34c507a3281266 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
$NetBSD: patch-ax,v 1.2 2008/08/10 19:50:47 tonnerre Exp $
--- src/ptlib/common/contain.cxx.orig 2004-10-21 15:04:21.000000000 +0200
+++ src/ptlib/common/contain.cxx
@@ -2454,7 +2454,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);
|