Up to [local] / src / usr.bin / ftp
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: OPENBSD_3_0_BASE
Revision 1.12 / (download) - annotate - [select for diffs], Fri Aug 3 22:43:16 2001 UTC (22 years, 10 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE,
OPENBSD_3_0
Changes since 1.11: +5 -4 lines
Diff to previous 1.11 (colored)
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@