struct kbrep *k;
while(1) {
- memset(str, '\0', 8);
+ memset(str, '\0', 7);
j=0;
k = usb_hidkb_getChars();
old_x = x; /* save actual x and y position for printing after the loop */
y = STDOUT_BORDER_TOP;
}
}
+ free(k);
if(j > 0) { /* when there was any printable stuff, show it */
print_str_noscroll(old_x, old_y, str);
printf("y: %d\n", y);