[gnu.gcc] twm vs. gcc

earle@SUN.COM (Greg Earle - Sun JPL on-site Software Support - 818-393-1058) (04/05/89)

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