projects
/
ppcskel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fixed buffer overflow on str
[ppcskel.git]
/
main.c
diff --git
a/main.c
b/main.c
index 2bc956f7c3532bddb1197fcb49090216e1bbb7b9..13524d596aecf14fbccb691affde6e0708ec04fe 100644
(file)
--- 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 */