commit | 12aba9e7974c5aabf0f4b8e90a5943bfa17fadf4 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Sat Jun 30 01:49:35 2012 +0000 |
committer | David S. Miller <davem@davemloft.net> | Sun Jul 08 23:51:11 2012 -0700 |
tree | f28da1c51f0613c27bcd65ccf7f1208ae4fd5c25 | |
parent | 8f961faef791f6cc8fb1d10817fa7af3efcb544e [diff] |
bnx2i: use strlcpy() instead of memcpy() for strings DRV_MODULE_VERSION here is "2.7.2.2" which is only 8 chars but we copy 12 bytes from the stack so it's a small information leak. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Michael Chan <mchan@broadcom.com> Acked-by: Eddie Wai <eddie.wai@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>