*BSD News Article 44885


Return to BSD News archive

Newsgroups: comp.unix.bsd.freebsd.misc
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!noc.netcom.net!news.sprintlink.net!cs.utexas.edu!lgc.com!dildog.lgc.com!news.sesqui.net!uuneo.neosoft.com!nmtigw!peter
From: peter@nmti.com (Peter da Silva)
Subject: Re: Major strcmp bug under BSD 2.0?
Message-ID: <id.FUDK1.J4J@nmti.com>
Sender: peter@nmti.com (peter da silva)
Organization: Network/development platform support, NMTI
References: <id.CQCK1.FCH@nmti.com> <3qj0ll$h3l@engnews2.eng.sun.com>
Date: Thu, 1 Jun 1995 21:15:53 GMT
Lines: 18

In article <3qj0ll$h3l@engnews2.eng.sun.com>,
Denton Gentry <denny@eng.sun.com> wrote:
> In article <id.CQCK1.FCH@nmti.com>, peter@nmti.com (Peter da Silva) writes:
> >They'll dump core on OSF/1 and a number of other unixes. On others they
> >will see garbage strings (the classic is the PDP-11 death cry of
> >^G^IP@P6). SunOS has a kludge of putting 0 at 0 to let you get away
> >with this... one of their many sins.

>   You get a segmentation fault on SunOS 4.x and Solaris 2.x.
>   Sun is not guilty of this particular sin.

You're right. It's the printf("%s", (char *)0); printing "(null)" that
Sun pioneered. Mea culpa.
-- 
Peter da Silva                                            `-_-'
Network Management Technology Incorporated                 'U`
1601 Industrial Blvd.     Sugar Land, TX  77478  USA
+1 713 274 5180                                "Har du kramat din varg idag?"