We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7463a73 commit a38684bCopy full SHA for a38684b
engine/utils/String.cpp
@@ -510,7 +510,7 @@ void String::Append(char character)
510
const char* data = Data();
511
size_t lhsLength = Size();
512
513
- char cstr[lhsLength + 1];
+ char cstr[lhsLength + 2];
514
strcpy(cstr, data);
515
cstr[lhsLength] = character;
516
cstr[lhsLength + 1] = '\0';
examples/game/src/tools/DevConsole.cpp
@@ -37,7 +37,7 @@ void DevConsole::OnUpdate()
37
char key;
38
while ((key = (char) Siege::Input::GetLatestChar()) > 0)
39
{
40
- if ((key >= 32) && (key <= 125) &&
+ if (key >= 32 && key <= 125 &&
41
!(key == Siege::Key::KEY_GRAVE_ACCENT && inputText.IsEmpty()))
42
inputText += key;
43
}
0 commit comments