Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!munnari!mimir!dcm From: dcm@mimir.dmt.oz (Dennis Mills) Newsgroups: comp.os.minix Subject: Re: Bug in library routine getenv() Message-ID: <868@mimir.dmt.oz> Date: Tue, 5-May-87 00:38:17 EDT Article-I.D.: mimir.868 Posted: Tue May 5 00:38:17 1987 Date-Received: Wed, 6-May-87 05:38:26 EDT References: <3860@cae780.TEK.COM> Organization: CSIRO Manufacturing Technology, Melbourne Lines: 18 in article <3860@cae780.TEK.COM>, hubble@cae780.TEK.COM (Larry Hubble) says: > > I believe there is also a bug in the > library routine strncpy -- it doesn't null terminate the string if the string > to copy is really longer that "n" characters. This is the correct documented behaviour of 'strncpy'. Dennis -- Dennis Mills, PHONE: +61 (03)487-9258 CSIRO Division of Manufacturing Technology, ACSNET: dcm@mimir.dmt.oz Cnr Albert and Raglan Streets, Preston Victoria, Australia, 3072. CSNET: dcm@mimir.dmt.oz ARPA: dcm%mimir.dmt.oz@seismo.arpa UUCP: {decvax,pesnta,vax135}!mulga!mimir.dmt!dcm {seismo,ukc,mcvax}!munnari!mimir.dmt!dcm