Xref: utzoo gnu.gcc:520 gnu.gcc.bug:1097 Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!decwrl!bothner From: bothner@decwrl.dec.com (Per Bothner) Newsgroups: gnu.gcc,gnu.gcc.bug Subject: Re: gcc 1.35 failed on build flex Message-ID: <1412@bacchus.dec.com> Date: 16 May 89 18:36:18 GMT References: <90@zip.eecs.umich.edu> <89May16.031927edt.741@church.csri.toronto.edu> Distribution: gnu.gcc.bug Organization: DEC Western Research Lab Lines: 14 In article <89May16.031927edt.741@church.csri.toronto.edu> moraes@csri.toronto.edu (Mark Moraes) writes: A fix is provided to get solve the crash when mktemp() is called with a read-only string. A better solution to problems of this sort is the following: Change: char *action_file_name = "/tmp/flexXXXXXX"; to: char action_file_name[] = "/tmp/flexXXXXXX"; This is simpler and faster than malloc'ing a copy. -- --Per Bothner Western Software Lab, Digital Equipment, 100 Hamilton Ave, Palo Alto CA 94301 bothner@wsl.dec.com ...!decwrl!bothner