summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2015-01-19 22:34:51 +0300
committerDavid S. Miller <davem@davemloft.net>2015-01-19 19:42:21 -0500
commita8c1d28ac3925b99b5a939617d3fef1644298ee8 (patch)
treef068125515f1490894aa9313d0078895db84d0b1 /include
parentef5a1ba145b95aafab823f833ad9b77d2ccc39bf (diff)
s2io: use snprintf() as a safety feature
"sp->desc[i]" has 25 characters. "dev->name" has 15 characters. If we used all 15 characters then the sprintf() would overflow. I changed the "sprintf(sp->name, "%s Neterion %s"" to snprintf(), as well, even though it can't overflow just to be consistent. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions