From: theStack Date: Thu, 24 Sep 2009 01:48:44 +0000 (+0200) Subject: fixed buffer overflow on str X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=ppcskel.git;a=commitdiff_plain;h=30067c9ba41b74abf505171df4f945bfe3f255d0 fixed buffer overflow on str --- 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 */