Return to BSD News archive
Newsgroups: comp.unix.bsd.bsdi.misc Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msunews!agate!howland.reston.ans.net!gatech!news.mathworks.com!news.alpha.net!mixcom.com!Dean.Roth From: Dean Roth <Dean.Roth@mixcom.com> Subject: compiler problems Message-ID: <1995May6.022930.27869@mixcom.com> Originator: xeee02@mixcom.mixcom.com Sender: news@mixcom.com (Net News Admin) Nntp-Posting-Host: mixcom.mixcom.com Organization: MIX Communications, Milwaukee, WI, U.S.A. info@mixcom.com Distribution: usa Date: Sat, 6 May 1995 02:29:30 GMT Lines: 17 Several programs that I've used for years are failing under BSDI 2.0, which is the first version of BSDI I've used. I've traced the problem to sprint function calls like the one below. int val; char msg[1024]; sprintf(msg, "%s", (val ? "something" : "else") ); This type of statement appears in several programs, and they are all crashing on the sprintf. Do I need to use some special gcc option, or is recoding needed to work around a compiler problem, or what? Dean