projects
/
profile
/
ivi
/
can-utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
slcanpty: declare command buffer static
[profile/ivi/can-utils.git]
/
slcanpty.c
diff --git
a/slcanpty.c
b/slcanpty.c
index
2c1cabe
..
c062a02
100644
(file)
--- a/
slcanpty.c
+++ b/
slcanpty.c
@@
-68,7
+68,7
@@
int pty2can(int pty, int socket, struct can_filter *fi,
{
int nbytes;
char cmd;
- char buf[200];
+
static
char buf[200];
char replybuf[10]; /* for answers to received commands */
int ptr;
struct can_frame frame;