Up to [local] / src / usr.bin / lndir
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: OPENBSD_3_4
Revision 1.14 / (download) - annotate - [select for diffs], Tue May 13 16:55:22 2003 UTC (21 years ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE,
OPENBSD_3_5,
OPENBSD_3_4_BASE,
OPENBSD_3_4
Changes since 1.13: +4 -5 lines
Diff to previous 1.13 (colored)
Use dp->d_namlen instead of strlen(dp->d_name) and check for dp->d_namlen == 0. Shouldn't be possible but the check prevents any possibilty of using an array index of -1.