summaryrefslogtreecommitdiff
path: root/x11-toolkits/wxgtk29/files/patch-src-common-string.cpp
blob: f88da4cc4be91afbb4de79dfbd1ad6f63184fcb0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- src/common/string.cpp.orig	Mon Feb 21 15:53:48 2005
+++ src/common/string.cpp	Tue Feb 22 01:39:54 2005
@@ -39,6 +39,7 @@
 #endif
 
 #include <ctype.h>
+#include <errno.h>
 #include <string.h>
 #include <stdlib.h>
 
@@ -1956,6 +1957,9 @@
             // ok, there was enough space
             break;
         }
+
+	if (errno != EOVERFLOW)
+            break;
 
         // still not enough, double it again
         size *= 2;