From 30067c9ba41b74abf505171df4f945bfe3f255d0 Mon Sep 17 00:00:00 2001 From: theStack Date: Thu, 24 Sep 2009 03:48:44 +0200 Subject: [PATCH] fixed buffer overflow on str --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 2bc956f..13524d5 100644 --- a/main.c +++ b/main.c @@ -148,7 +148,7 @@ int main(void) 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 */ -- 2.25.1