diff options
author | Ferenc Wagner <wferi@niif.hu> | 2011-08-25 14:44:57 +0200 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2011-12-15 07:57:29 +0100 |
commit | 8af3d8d5bc75914a01fe41839474902f2c6b79b9 (patch) | |
tree | 1aa10850f0fd2551a9036c87edc7b6efccf25b72 /drivers/message/fusion/mptsas.c | |
parent | [SCSI] qla2xxx: remove redundant semicolon (diff) | |
download | linux-8af3d8d5bc75914a01fe41839474902f2c6b79b9.tar.xz linux-8af3d8d5bc75914a01fe41839474902f2c6b79b9.zip |
[SCSI] fusion: ensure NUL-termination of MptCallbacksName elements
Using strlcpy instead of memcpy makes the strlen() calls superfluous
and also ensures zero-termination of the copied string.
At the same time get rid of the magic constant 50.
Actually, I can't see why copying the callback name is necessary
instead of simply storing a pointer to it (just like to the callback
function itself), but that goes beyond the scope of this fix.
Signed-off-by: Ferenc Wagner <wferi@niif.hu>
Acked-by: "Nandigama, Nagalakshmi" <Nagalakshmi.Nandigama@lsi.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/message/fusion/mptsas.c')
0 files changed, 0 insertions, 0 deletions