summaryrefslogtreecommitdiffstats
path: root/multimedia/avifile/files/patch-lib::common::String.cpp
blob: 2475511a8b010244522231a7ee756c6c020944a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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)
OpenPOWER on IntegriCloud