commit | a8c1d28ac3925b99b5a939617d3fef1644298ee8 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Mon Jan 19 22:34:51 2015 +0300 |
committer | David S. Miller <davem@davemloft.net> | Mon Jan 19 19:42:21 2015 -0500 |
tree | f068125515f1490894aa9313d0078895db84d0b1 | |
parent | ef5a1ba145b95aafab823f833ad9b77d2ccc39bf [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>