]> rtime.felk.cvut.cz Git - sojka/can-utils.git/commit
slcanpty: fix wrong usage of nbytes variable
authorOliver Hartkopp <socketcan@hartkopp.net>
Mon, 26 Nov 2012 20:44:22 +0000 (21:44 +0100)
committerOliver Hartkopp <socketcan@hartkopp.net>
Mon, 26 Nov 2012 20:44:22 +0000 (21:44 +0100)
commit0fb5680a6151c04651472030fe78bae4de9e0114
treef6590117e7edb688655f277f886a99855687b6b8
parentd547068185684cdb8bd01e5f3b47b9ea08b781bb
slcanpty: fix wrong usage of nbytes variable

nbytes is used after writing the CAN frame to check for an additional command
in the string buffer. Therefore using nbytes while writing the CAN frame is
wrong. Replace it with 'tmp' which can be used here without problems.

Signed-off-by: ulrich escher<git@myvdr.de>
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
slcanpty.c