diff options
author | 2015-01-19 22:34:51 +0300 | |
---|---|---|
committer | 2015-01-19 19:42:21 -0500 | |
commit | a8c1d28ac3925b99b5a939617d3fef1644298ee8 (patch) | |
tree | f068125515f1490894aa9313d0078895db84d0b1 /fs/notify | |
parent | Merge branch 'r8152' (diff) | |
download | linux-a8c1d28ac3925b99b5a939617d3fef1644298ee8.tar.gz linux-a8c1d28ac3925b99b5a939617d3fef1644298ee8.tar.bz2 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 'fs/notify')
0 files changed, 0 insertions, 0 deletions