diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2001-08-03 22:43:17 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2001-08-03 22:43:17 +0000 |
commit | b33b8926939f770fb2c64241ecea527d63e3bb06 (patch) | |
tree | 8afda6b4fff2a099297c4f4c85e3640d65734613 /usr.bin/ftp/fetch.c | |
parent | 42a82d4aa73cebe940aa4d4d2f69e14c25bef5f5 (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