summaryrefslogtreecommitdiff
path: root/multimedia/avifile/files/patch-lib::common::String.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/avifile/files/patch-lib::common::String.cpp')
-rw-r--r--multimedia/avifile/files/patch-lib::common::String.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/multimedia/avifile/files/patch-lib::common::String.cpp b/multimedia/avifile/files/patch-lib::common::String.cpp
new file mode 100644
index 000000000000..2475511a8b01
--- /dev/null
+++ b/multimedia/avifile/files/patch-lib::common::String.cpp
@@ -0,0 +1,19 @@
+--- lib/common/String.cpp.orig Wed Nov 19 10:51:12 2003
++++ lib/common/String.cpp Wed Nov 19 10:52:01 2003
+@@ -3,6 +3,7 @@
+ #include <ctype.h>
+ #include <stdio.h>
+ #include <stdarg.h>
++#include <stdlib.h>
+
+ AVM_BEGIN_NAMESPACE;
+
+@@ -170,7 +171,7 @@
+ #else
+ // a bit poor hack but should be sufficient
+ // eventually write full implementation
+- s = malloc(1000);
++ s = (char *)malloc(1000);
+ r = vsnprintf(str, 999, fmt, ap);
+ #endif
+ if (s)