diff --git a/src/Magnum/Platform/GlfwApplication.cpp b/src/Magnum/Platform/GlfwApplication.cpp index 144d3359d..8e51ceb65 100644 --- a/src/Magnum/Platform/GlfwApplication.cpp +++ b/src/Magnum/Platform/GlfwApplication.cpp @@ -504,6 +504,7 @@ void GlfwApplication::setupCallbacks() { if(!(app._flags & Flag::TextInputActive)) return; char utf8[4]; + memset(utf8, 0, 4); const std::size_t size = Utility::Unicode::utf8(codepoint, utf8); TextInputEvent e{{utf8, size}}; app.textInputEvent(e);