Skip to content
Commit 34dcf6a1 authored by swkhack's avatar swkhack Committed by David S. Miller
Browse files

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: default avatarswkhack <swkhack@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 510e2ced
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment