aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/qlcnic/qlcnic_main.c
diff options
context:
space:
mode:
authorChangli Gao <xiaosuo@gmail.com>2010-08-24 13:32:58 +0000
committerDavid S. Miller <davem@davemloft.net>2010-08-26 14:11:49 -0700
commit53f91dc1f76922375ad7957ef29f48986722532d (patch)
tree71583203eb39de7ccf1733930833e9d229c38333 /drivers/net/qlcnic/qlcnic_main.c
parentnet/sctp: Use pr_fmt and pr_<level> (diff)
downloadlinux-dev-53f91dc1f76922375ad7957ef29f48986722532d.tar.xz
linux-dev-53f91dc1f76922375ad7957ef29f48986722532d.zip
net: use scnprintf() to avoid potential buffer overflow
strlcpy() returns the total length of the string they tried to create, so we should not use its return value without any check. scnprintf() returns the number of characters written into @buf not including the trailing '\0', so use it instead here. Signed-off-by: Changli Gao <xiaosuo@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/qlcnic/qlcnic_main.c')
0 files changed, 0 insertions, 0 deletions