Date: Sun, 20 Nov 2005 00:50:30 +0000 (UTC) From: Colin Percival <cperciva@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/portsnap/make_index make_index.c Message-ID: <200511200050.jAK0oUbB059874@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
cperciva 2005-11-20 00:50:30 UTC
FreeBSD src repository
Modified files:
usr.sbin/portsnap/make_index make_index.c
Log:
An empty file does not have a positive number of lines.
Make sure that the number of lines read is non-zero before in order to
avoid dumping core.
Reported by: Wojciech A. Koszek
Pointy hat to: cperciva
Revision Changes Path
1.4 +7 -0 src/usr.sbin/portsnap/make_index/make_index.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200511200050.jAK0oUbB059874>
