summaryrefslogtreecommitdiffstats
path: root/src/openscenegraph-2-no-asprintf.patch
diff options
context:
space:
mode:
Diffstat (limited to 'src/openscenegraph-2-no-asprintf.patch')
-rw-r--r--src/openscenegraph-2-no-asprintf.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/openscenegraph-2-no-asprintf.patch b/src/openscenegraph-2-no-asprintf.patch
new file mode 100644
index 0000000..c246402
--- /dev/null
+++ b/src/openscenegraph-2-no-asprintf.patch
@@ -0,0 +1,18 @@
+This file is part of mingw-cross-env.
+See doc/index.html for further information.
+
+diff -urN a/src/osgPlugins/xine/ReaderWriterXine.cpp b/src/osgPlugins/xine/ReaderWriterXine.cpp
+--- a/src/osgPlugins/xine/ReaderWriterXine.cpp 2010-03-13 11:38:10.000000000 +0100
++++ b/src/osgPlugins/xine/ReaderWriterXine.cpp 2010-04-28 22:54:29.203481468 +0200
+@@ -326,9 +326,8 @@
+ const char* user_home = xine_get_homedir();
+ if(user_home)
+ {
+- char* cfgfile = NULL;
+- int result = asprintf(&(cfgfile), "%s/.xine/config", user_home);
+- if (result>0) xine_config_load(_xine, cfgfile);
++ std::string configFile(std::string(user_home)+"/.xine/config");
++ xine_config_load(_xine, configFile.c_str());
+ }
+
+ xine_init(_xine);