OpenBSD CVS

CVS log for src/usr.bin/ftp/complete.c


[BACK] Up to [local] / src / usr.bin / ftp

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: OPENBSD_3_0


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@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.