aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-02-15 03:24:59 -0500
committerDavid Robillard <d@drobilla.net>2015-02-15 03:28:13 -0500
commitae59392df85dbdd574b7887ea335e887334d8931 (patch)
tree74328b19257cb000103878de2a75d23766ab04c4
parentc9f052c7c16505dc6dcc109a6d19b329b01916cb (diff)
Fix string initialization.
-rw-r--r--pugl/pugl_x11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pugl/pugl_x11.c b/pugl/pugl_x11.c
index 6289166..da33063 100644
--- a/pugl/pugl_x11.c
+++ b/pugl/pugl_x11.c
@@ -322,7 +322,7 @@ translateKey(PuglView* view, XEvent* xevent, PuglEvent* event)
{
KeySym sym = 0;
char* str = (char*)event->key.utf8;
- memset(str, 0, 7);
+ memset(str, 0, 8);
event->key.filter = XFilterEvent(xevent, None);
if (xevent->type == KeyRelease || event->key.filter || !view->impl->xic) {
if (XLookupString(&xevent->xkey, str, 7, &sym, NULL) == 1) {