Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information