asomers 1fe29e8908 Fix several Coverity warnings in tftp
Some of the changes are in the libexec/tftpd directory, but to functions that
are only used by tftp(1) (they share some code).

* strcpy => strlcpy (1006793, 1006794, 1006796, 1006741)
* Unchecked return value and TOCTTOU (1009314)
* NULL pointer dereference (1018035, 1018036)

Reported by:	Coverity
CID:		1006793, 1006794, 1006796, 1006741, 1009314, 1018035
CID:		1018036
MFC after:	2 weeks
2018-07-22 17:10:12 +00:00
..
2018-06-01 22:57:19 +00:00
2018-05-19 00:26:00 +00:00
2018-06-18 04:54:09 +00:00
2018-06-09 04:40:17 +00:00
2018-07-03 19:09:46 +00:00
2018-06-25 11:44:56 +00:00
2018-06-22 09:10:50 +00:00
2018-06-21 07:42:28 +00:00
2018-05-04 14:39:32 +00:00
2018-06-27 19:29:15 +00:00
2018-06-13 08:52:04 +00:00
2018-05-23 01:20:31 +00:00
2018-07-10 22:00:20 +00:00