]> 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)
commitbfe9c4da7d0eefe62e08c475f5be249a7965341e
treed0d0b9aedcb5e2cc02f627b2e1b909befd29a1e2
parent658e77c8ee983ee2527859e06a56a98e55319025
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