diff --git a/indra/llxml/llxmlnode.cpp b/indra/llxml/llxmlnode.cpp
index 1fcacb46a5ae049f6e1107e8d89eb64f7960df6c..bd465c30f0e2211052164fb1a63bf23c55f89c33 100644
--- a/indra/llxml/llxmlnode.cpp
+++ b/indra/llxml/llxmlnode.cpp
@@ -492,7 +492,7 @@ void XMLCALL XMLData(void *userData,
 			return;
 		}
 	}
-	value.append(LLString(s, 0, len));
+	value.append(std::string(s, len));
 	current_node->setValue(value);
 }