summaryrefslogtreecommitdiff
path: root/usr.bin/ftp/fetch.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2001-08-03 22:43:17 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2001-08-03 22:43:17 +0000
commitb33b8926939f770fb2c64241ecea527d63e3bb06 (patch)
tree8afda6b4fff2a099297c4f4c85e3640d65734613 /usr.bin/ftp/fetch.c
parent42a82d4aa73cebe940aa4d4d2f69e14c25bef5f5 (diff)
Add back NUL termination of 'word' in complete() that was erroneously
removed in strlcpy() conversion. Previously we were trying to strlcpy() a pointer that could be NULL. Now we check that the length != 0 and use memcpy() instead, then NUL terminate by hand to catch the other cases. Core dump noticed by fgs@
Diffstat (limited to 'usr.bin/ftp/fetch.c')
0 files changed, 0 insertions, 0 deletions