cvs commit: src/sbin/sysctl sysctl.c

Matthew Dillon dillon at apollo.backplane.com
Mon Jan 24 09:59:40 PST 2005


:On Sat, Jan 22, 2005 at 02:50:28PM +0100, Joerg Sonnenberger wrote:
:> On Mon, Jan 17, 2005 at 07:13:52PM -0800, Chris Pressey wrote:
:> >   Fix by only fwrite(3)ing the string up to the first NUL character.
:> Could you replace the inline code with memchr?
:
:I still don't understand what was wrong with using printf("%.*s").

    I agree, a simple cast to (int) would have sufficed.   But I guess 
    now that it's done, we might as well keep it.

					-Matt
					Matthew Dillon 
					<dillon at xxxxxxxxxxxxx>





More information about the Commits mailing list