home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!mcsun!news.funet.fi!funic!nntp.hut.fi!nntp!jem
- From: jem@snakemail.hut.fi (Johan Myreen)
- Subject: Re: ANNOUNCE: Linux 0.98 pl5
- In-Reply-To: jem@snakemail.hut.fi's message of 16 Nov 92 19:35:59 GMT
- Message-ID: <JEM.92Nov17135828@lk-hp-6.hut.fi>
- Sender: usenet@nntp.hut.fi (Usenet pseudouser id)
- Nntp-Posting-Host: lk-hp-6.hut.fi
- Organization: Helsinki University of Technology, Finland
- References: <1992Nov15.220138.5434@klaava.Helsinki.FI> <JEM.92Nov16213559@lk-hp-6.hut.fi>
- Date: 17 Nov 92 11:58:27 GMT
- Lines: 17
-
- In article <JEM.92Nov16213559@lk-hp-6.hut.fi> jem@snakemail.hut.fi (Johan Myreen) writes:
-
- >This breaks code modifying string literals, like for instance the
- >mktemp library function when called like this: mktemp("/tmp/fooXXXXXX").
- >This is not a bug in Linux or Gcc, but in *your* application, if you
- >use mktemp like this, or do tricks like "bar"[2]++...
-
- On second thought, these examples aren't very good, since the program
- fragments are meaningless. But you get the idea: don't modify string
- constants, not even through a pointer.
-
- Gcc offers the -fwritable-strings option as a quick fix for these
- non-standard programs.
-
- --
- Johan Myreen
- jem@cs.hut.fi
-