From f7108d547fc89836497492b7b5588759fd7f9a7d Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Mon, 7 Oct 2019 19:15:33 -0500 Subject: hscript: Allocate +lower+ properly --- hscript/key.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hscript/key.cc b/hscript/key.cc index a677670..d51e7d2 100644 --- a/hscript/key.cc +++ b/hscript/key.cc @@ -17,7 +17,7 @@ bool Horizon::Keys::BooleanKey::parse(const std::string what, const std::string where, const std::string key, bool *out) { - std::string lower; + std::string lower(what.size(), 0); std::transform(what.begin(), what.end(), lower.begin(), ::tolower); if(lower == "true" || lower == "yes" || lower == "1") { -- cgit v1.2.3-60-g2f50