diff --git a/indra/newview/llmeshrepository.cpp b/indra/newview/llmeshrepository.cpp
index 76079b2bf5b22417ba5e87111fb93f6c4601b3a5..6e0722bcf99fa46771bbbd90fd2c738c654a6c6a 100755
--- a/indra/newview/llmeshrepository.cpp
+++ b/indra/newview/llmeshrepository.cpp
@@ -1455,7 +1455,7 @@ void dump_llsd_to_file(const LLSD& content, std::string filename)
 
 LLSD llsd_from_file(std::string filename)
 {
-	std::ifstream ifs(filename);
+	std::ifstream ifs(filename.c_str());
 	LLSD result;
 	LLSDSerialize::fromXML(result,ifs);
 	return result;