diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2015-01-19 22:34:51 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-01-19 19:42:21 -0500 |
commit | a8c1d28ac3925b99b5a939617d3fef1644298ee8 (patch) | |
tree | f068125515f1490894aa9313d0078895db84d0b1 /MAINTAINERS | |
parent | ef5a1ba145b95aafab823f833ad9b77d2ccc39bf (diff) | |
download | blackbird-op-linux-a8c1d28ac3925b99b5a939617d3fef1644298ee8.tar.gz blackbird-op-linux-a8c1d28ac3925b99b5a939617d3fef1644298ee8.zip |
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 'MAINTAINERS')
0 files changed, 0 insertions, 0 deletions