commit | 7f0d0b55f2c60bf46b9a1ecfa77f5f83d1cf17fa | [log] [tgz] |
---|---|---|
author | Darrick J. Wong <darrick.wong@oracle.com> | Fri Apr 26 15:44:21 2019 -0500 |
committer | Eric Sandeen <sandeen@redhat.com> | Fri Apr 26 15:44:21 2019 -0500 |
tree | cddfa4659ec98f71f919a555db7b6c2bb04368d4 | |
parent | 3d16890ebcfaf33b95ec2a64f5e412c9ec68f4c3 [diff] |
misc: fix strncpy length complaints Fix a number of complaints about feeding sizeof(dest) directly to strncpy. We do this by feeding strncpy the length of the buffer minus one, having checked that the allocated space are long enough. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Bill O'Donnell <billodo@redhat.com> Reviewed-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Eric Sandeen <sandeen@sandeen.net>