From b6fec6f1fc30e6362471d442edda32d841bf30a1 Mon Sep 17 00:00:00 2001
From: brad kittenbrink <brad@lindenlab.com>
Date: Fri, 10 Jul 2009 18:28:16 -0700
Subject: [PATCH] Fix for crash when running windows debug build. 
 std::string::replace cannot take NULL for it's argument.

---
 indra/llrender/llfontregistry.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/indra/llrender/llfontregistry.cpp b/indra/llrender/llfontregistry.cpp
index 18e4a6915d8..455a68ca81c 100644
--- a/indra/llrender/llfontregistry.cpp
+++ b/indra/llrender/llfontregistry.cpp
@@ -104,7 +104,7 @@ bool removeSubString(std::string& str, const std::string& substr)
 	size_t pos = str.find(substr);
 	if (pos != string::npos)
 	{
-		str.replace(pos,substr.length(),(const char *)NULL, 0);
+		str.replace(pos,substr.length(), "", 0);
 		return true;
 	}
 	return false;
-- 
GitLab