Copy hhas string rather than attach in HHAS parse_long_string()

buffer falls out of scope and becomes invalid on return.
Copy the string so that it's still usable later on.
Esse commit está contido em:
Sara Golemon
2013-06-27 12:12:34 -07:00
commit 7aa06852e4
+1 -1
Ver Arquivo
@@ -1137,7 +1137,7 @@ String parse_long_string(AsmState& as) {
// String wants a null, and dereferences one past the size we give
// it.
buffer.push_back('\0');
return String(&buffer[0], buffer.size() - 1, AttachLiteral);
return String(&buffer[0], buffer.size() - 1, CopyString);
}
/*