Path: utzoo!attcan!uunet!lll-winken!csd4.milw.wisc.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!SUN.COM!earle From: earle@SUN.COM (Greg Earle - Sun JPL on-site Software Support - 818-393-1058) Newsgroups: comp.windows.x Subject: twm vs. gcc Message-ID: <8904050608.AA14064@Sun.COM> Date: 5 Apr 89 06:08:42 GMT Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 14 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