From: Johnny Oskarsson Date: Fri, 8 Apr 2016 10:39:50 +0200 Subject: [PATCH 1/2] Initialize arrays to zero. The uninizialized arrays caused some problems when selecting instrument number. --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index 1da3e04..a0a8ab6 100644 --- a/main.c +++ b/main.c @@ -298,13 +298,13 @@ run(void) XEvent e2; KeySym tmpkeysym = NoSymbol; - char string[10]; + char string[10] = {0}; uint i = 0; XSetForeground(dpy, gc, xfontcolor); while (tmpkeysym != XK_Return && tmpkeysym != XK_KP_Enter) { XNextEvent(dpy, &e2); - char input[25]; + char input[25] = {0}; switch (e2.type) { case KeyPress: -- 2.4.6