stringinput: avoid uninitialized access

This commit is contained in:
Stefan Seyfried
2012-11-14 21:33:15 +01:00
parent 10e359e43b
commit 609d29bdd8

View File

@@ -421,7 +421,7 @@ int CStringInput::exec( CMenuTarget* parent, const std::string & )
return res; return res;
} }
oldval[size] = 0; oldval[size] = 0;
dispval[size] = 0; memset(dispval, 0, size + 1);
if (parent) if (parent)
parent->hide(); parent->hide();