Date: Sat, 11 Jan 1997 03:02:10 +0100 From: "Philippe Charnier" <charnier@xp11.frmug.org> To: hackers@FreeBSD.org Subject: number of lines in a file, given its size Message-ID: <199701110202.DAA29018@xp11.frmug.org>
next in thread | raw e-mail | index | archive | help
Hello,
In line 115 in /usr/src/lib/libc/gen/getusershell.c:
shells = calloc((unsigned)statb.st_size / 3, sizeof (char *));
^^^^^^^^^^^^^^^^^
Isn't this a suspicious approximation of the number of lines in /etc/shells
(just put `/' in it for example of an invalid entry).
------ ------
Philippe Charnier charnier@lirmm.fr (smtp)
charnier@xp11.frmug.org (uucp)
``a PC not running FreeBSD is like a venusian with no tentacles''
------------------------------------------------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199701110202.DAA29018>
