From: Ferenc Wagner Date: Thu, 25 Aug 2011 12:44:57 +0000 (+0200) Subject: [SCSI] fusion: ensure NUL-termination of MptCallbacksName elements X-Git-Tag: v3.3-rc1~124^2~41 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8af3d8d5bc75914a01fe41839474902f2c6b79b9;p=pandora-kernel.git [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 Acked-by: "Nandigama, Nagalakshmi" Signed-off-by: James Bottomley --- Reading git-diff-tree failed