]> rtime.felk.cvut.cz Git - can-utils.git/commit
slcanpty: declare command buffer static
authorYegor Yefremov <yegorslists@googlemail.com>
Mon, 13 Jan 2014 13:29:16 +0000 (14:29 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 16 Jan 2014 15:31:50 +0000 (16:31 +0100)
commitc7aa0b7051b867a409e41fbe4c1f3d1ca5e884a6
treebf9335df269c89768f6f1bdcaf0cede57e7bc550
parent31936b5a173dfe1d0ba0e71859e37cbc42d5bad8
slcanpty: declare command buffer static

ASCII command buffer char buf[200] must be declared as static,
because it holds incomplete commands between pty2can() calls.
Without static it is not guaranteed, that buf retains the same
data between calls.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Acked-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
slcanpty.c