From edc427a11654d2531d8a8a97c1e461cb13949adc Mon Sep 17 00:00:00 2001 From: McCabe Maxsted Date: Wed, 28 Jan 2009 17:02:18 -0700 Subject: Plugin path set via string --- linden/indra/newview/llappviewer.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'linden/indra/newview') diff --git a/linden/indra/newview/llappviewer.cpp b/linden/indra/newview/llappviewer.cpp index acc512f..15ce1a3 100644 --- a/linden/indra/newview/llappviewer.cpp +++ b/linden/indra/newview/llappviewer.cpp @@ -334,14 +334,11 @@ void LLAppViewer::gst_plugin_path() { LL_INFOS("InitInfo") << "Imprudence is installed at " << buffer << LL_ENDL; - char plugin_path[255]; - strcpy (plugin_path,"GST_PLUGIN_PATH="); - strcat (plugin_path,buffer); - strcat (plugin_path,"\\lib\\gstreamer-plugins"); + std::string plugin_path = "GST_PLUGIN_PATH=" + std::string(buffer) + "\\lib\\gstreamer-plugins"; // Place GST_PLUGIN_PATH in the environment settings for imprudence.exe - putenv(plugin_path); - + const char* gst_plugin_path = plugin_path.c_str(); + putenv(gst_plugin_path); LL_INFOS("InitInfo") << "GST_PLUGIN_PATH set to " << getenv("GST_PLUGIN_PATH") << LL_ENDL; } #endif //LL_WINDOWS -- cgit v1.1