Mercurial > mxe-octave
view src/openscenegraph-3-no-asprintf.patch @ 1228:f485e93f9b65
bugfix for gtksourceview: specify location of glib-genmarshal and glib-mkenums
author | Tony Theodore <tonyt@logyst.com> |
---|---|
date | Thu, 30 Sep 2010 20:30:50 +1000 |
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);