From 1b945dadf2f4e28e817ea4c15cc9207f2538330c Mon Sep 17 00:00:00 2001 From: Rye Mutt <rye@alchemyviewer.org> Date: Tue, 5 Jan 2021 01:32:59 -0500 Subject: [PATCH] Fix usage of LLResMgr::getIntegerString with same output string multiple times --- indra/llui/llresmgr.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/indra/llui/llresmgr.cpp b/indra/llui/llresmgr.cpp index 6e924c1f19f..827ea3c9a5b 100644 --- a/indra/llui/llresmgr.cpp +++ b/indra/llui/llresmgr.cpp @@ -254,6 +254,7 @@ void LLResMgr::getIntegerString( std::string& output, S32 input ) const } // *NOTE: this method does not handle negative input integers correctly + output.clear(); S32 fraction = 0; std::string fraction_string; S32 remaining_count = input; -- GitLab