Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!SUN.COM!earle From: earle@SUN.COM (Greg Earle - Sun JPL on-site Software Support - 818-393-1058) Newsgroups: gnu.gcc Subject: twm vs. gcc Message-ID: <8904050610.AA14080@Sun.COM> Date: 5 Apr 89 06:10:42 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 15 When I build twm (R3 version) with GNU gcc (1.34 version), it dumps core in twm.c/main() when doing a sscanf() of the Date string into the Version string (line 379 in twm.c). If I compile version.c with `-fwritable-strings' this doesn't happen; can someone provide a hint as to why it does happen (especially since none of the strings defined in version.c are written to; `sscanf' uses the char *Date string to do extractions, but I didn't think it needed to modify a supposed-to-be unwritable string to do so). A patch for version.c to make this problem automagically go away would be nice, too. - Greg Earle Sun Microsystems, Inc. JPL on-site Software Support earle@Sun.COM ...!sun!earle