]> git.baikalelectronics.ru Git - kernel.git/commit
net: caif: fix the value of size argument of snprintf
authorswkhack <swkhack@gmail.com>
Fri, 17 May 2019 07:59:22 +0000 (15:59 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 May 2019 18:31:15 +0000 (11:31 -0700)
commit8d2ecb9465976afed61d0ec399af83209f0bceac
treed0d0b9aedcb5e2cc02f627b2e1b909befd29a1e2
parent5eddda6908380cffe9c5ba0c8995ba30f675898c
net: caif: fix the value of size argument of snprintf

Because the function snprintf write at most size bytes(including the
null byte).So the value of the argument size need not to minus one.

Signed-off-by: swkhack <swkhack@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/caif/cfdbgl.c
net/caif/cfdgml.c
net/caif/cfutill.c
net/caif/cfveil.c
net/caif/cfvidl.c