mirror_zfs/tests/zfs-tests/tests/functional/ctime
GeLiXin 66826e2285 Fix coverity defects: CID 147643, 152204, 49339
CID 147643: Type: String not null terminated
- make sure that the string is null terminated before strlen
  and fprintf.

CID 152204: Type: Copy into fixed size buffer
- since strlcpy isn't availabe here, use strncpy and terminate
  the string manually.

CID 49339: Type: Buffer not null terminated
- since strlcpy isn't availabe here, terminate the string
  manually before fprintf.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: GeLiXin <ge.lixin@zte.com.cn>
Closes #5283
2016-10-18 10:43:22 -07:00
..
.gitignore Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
cleanup.ksh Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
ctime_001_pos.c Fix coverity defects: CID 147643, 152204, 49339 2016-10-18 10:43:22 -07:00
Makefile.am Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
setup.ksh Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00