Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!pt.cs.cmu.edu!thewalt From: thewalt@RITZ.ce.cmu.edu (Chris Thewalt) Newsgroups: gnu.gcc.bug Subject: Re: gcc 1.36 and -fwritable-strings Message-ID: Date: 21 Oct 89 21:52:10 GMT References: Distribution: gnu Organization: Dept. of Civil Engineering, Carnegie Mellon University, Pittsburgh, PA Lines: 16 In-reply-to: thewalt@RITZ.ce.cmu.edu's message of 19 Oct 89 16:50:53 GMT In a previous article I wrote: > Hello. I am using gcc 1.36 on a MicroVAX running Ultrix 2.2. I tried > to compile the following simple program without the -fwritable strings > and get a bus error, but it works with the flag. I don't quite > understand this since I am not attempting to write into any string > constants. A script of the session follows: Thanks to the many people who responded and told me that Ultrix' sscanf (and many other Unix variants) attempts to scribble into the argument string (faking an ungetc). -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Christopher Robin Thewalt These opinions are not necessarily thewalt@ce.cmu.edu shared by my employer... Carnegie Mellon University