view src/openscenegraph-3-no-asprintf.patch @ 993:be3969597cbd

update release notes
author Volker Grabsch <vog@notjusthosting.com>
date Thu, 20 May 2010 22:31:36 +0200
parents dec902a06078
children 8eac99c1e318
line wrap: on
line source

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);