OSDN Git Service

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)
commit34dcf6a1902ac214149a2742250ff03aa5346f3e
treed0d0b9aedcb5e2cc02f627b2e1b909befd29a1e2
parent510e2ceda031eed97a7a0f9aad65d271a58b460d
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