- uri is expected to be nul-terminated (strchr used later),
authordelphij <delphij@FreeBSD.org>
Mon, 31 Aug 2015 06:11:39 +0000 (06:11 +0000)
committerdelphij <delphij@FreeBSD.org>
Mon, 31 Aug 2015 06:11:39 +0000 (06:11 +0000)
commit12dcab665d5b5bd29c665ef247cac3dd2235fae0
treedf1e33e4a303db28af370ea492baf8de87700688
parent7e8aee6f078850c495107305a3bc47878520c5e6
 - uri is expected to be nul-terminated (strchr used later),
   so use strlcpy instead of strncpy.
 - unroll the other two cases of strncpy+\0 to strlcpy.

MFC after: 2 weeks
usr.bin/tftp/main.c