]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r287320:
authordelphij <delphij@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 14 Sep 2015 18:57:50 +0000 (18:57 +0000)
committerdelphij <delphij@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 14 Sep 2015 18:57:50 +0000 (18:57 +0000)
commit2b78c8ae673a73fd05434d28fd6679312676a5ce
treedfda9cdfc2c58ab039faeb9c59b160a9d4fb9e7e
parentfd39491580397501ec232765232b81694b2310ab
MFC r287320:
 - uri is expected to be nul-terminated (strchr used later),
   so use strlcpy instead of strncpy.
 - replace the other two cases of strncpy+\0 with strlcpy.

git-svn-id: svn://svn.freebsd.org/base/stable/10@287795 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.bin/tftp/main.c