]> git.ipfire.org Git - thirdparty/mdadm.git/commit
IMSM: use strcpy rather than pointless strncpy.
authorNeilBrown <neilb@suse.de>
Thu, 3 Jul 2014 05:04:01 +0000 (15:04 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 3 Jul 2014 05:04:01 +0000 (15:04 +1000)
commit6d8d290a2f09a3bfd9e44f382ae5daea128772f7
tree8b69dc82c8a01cb0daff9cfef0e8cf728d4abc30
parente339dba2a1744dc6860a58e286ded39fc993c2db
IMSM: use strcpy rather than pointless strncpy.

As strncpy doesn't guarantee to nul-terminate, some static
analysers get upset that it is followed by a 'strncat'.
So just use a 'strcpy' - strlen(disk_by_path) is constant
and definitely less than PATH_MAX.

Link: https://github.com/neilbrown/mdadm/issues/4
Signed-off-by: NeilBrown <neilb@suse.de>
super-intel.c