summaryrefslogtreecommitdiffstats
path: root/net/ipv6/route.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2013-01-17 21:46:18 +0000
committerDavid S. Miller <davem@davemloft.net>2013-01-18 14:34:48 -0500
commit4505f40a6f1a6a1bb8f8ef84a4a35263d64b5125 (patch)
treec24a2640af41309c22d32f21ab4332ec6d52ce9d /net/ipv6/route.c
parent6b80778d3d7424b8f0a45052742d065ec491abd8 (diff)
downloadlinux-4505f40a6f1a6a1bb8f8ef84a4a35263d64b5125.tar.bz2
enic: change sprintf() to snprintf()
These are copying data into 16 char arrays. They all specify that the first string can't be more than 11 characters but once you add on the "-rx-" and the NUL character there isn't space for the %d. The first string is probably never going to be 11 characters, but if it is then let's truncate the string instead of corrupting memory. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/route.c')
0 files changed, 0 insertions, 0 deletions