Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Dec 1996 10:06:02 +0100 (MET)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        chat@freebsd.org
Cc:        downsj@teeny.org (Jason Downs)
Subject:   Re: crontab security hole
Message-ID:  <199612170906.KAA14465@uriah.heep.sax.de>
In-Reply-To: <199612170316.TAA22717@threadway.teeny.org> from Jason Downs at "Dec 16, 96 07:16:12 pm"

next in thread | previous in thread | raw e-mail | index | archive | help

As Jason Downs wrote:

> strncat() always terminates, strncpy() does not if it runs out of space.

I've been confused about the former, but the latter is what i call an
error by design.  (There are more of them in the C standard library,
like the missing snprintf() or a similar function, and the existance
of gets().)

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199612170906.KAA14465>