mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 05:05:19 -05:00
fix: Trailing zero at end of string input buffers
This commit is contained in:
@@ -131,13 +131,7 @@ namespace hex::plugin::builtin {
|
||||
void drawMathEvaluator() {
|
||||
static std::vector<long double> mathHistory;
|
||||
static std::string lastMathError;
|
||||
static auto mathInput = [] {
|
||||
std::string s;
|
||||
s.reserve(0xFFFF);
|
||||
std::memset(s.data(), 0x00, s.capacity());
|
||||
|
||||
return s;
|
||||
}();
|
||||
static std::string mathInput;
|
||||
bool evaluate = false;
|
||||
|
||||
static MathEvaluator mathEvaluator = [&] {
|
||||
|
||||
Reference in New Issue
Block a user