From owner-freebsd-questions Wed Feb 14 12:09:53 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id MAA09831 for questions-outgoing; Wed, 14 Feb 1996 12:09:53 -0800 (PST) Received: from mpp.minn.net (root@mpp.Minn.Net [204.157.201.242]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id MAA09824 for ; Wed, 14 Feb 1996 12:09:39 -0800 (PST) Received: (from mpp@localhost) by mpp.minn.net (8.7.3/8.6.9) id OAA05138; Wed, 14 Feb 1996 14:08:47 -0600 (CST) Message-Id: <199602142008.OAA05138@mpp.minn.net> Subject: Re: mktemp() To: wollman@lcs.mit.edu (Garrett A. Wollman) Date: Wed, 14 Feb 1996 14:08:46 -0600 (CST) From: "Mike Pritchard" Cc: kline@tera.com, questions@FreeBSD.org In-Reply-To: <9602141911.AA06754@halloran-eldar.lcs.mit.edu> from "Garrett A. Wollman" at Feb 14, 96 02:11:34 pm X-Mailer: ELM [version 2.4 PL25 ME8b] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.org Precedence: bulk Garrett A. Wollman wrote: > > < > > The libc call mktemp() (along with strtok() and strsep(), by the way) > > causes a coredump when I use it with gcc. This from v 2.0.5. > > mktemp() modifies its argument. It is incorrect to pass it a string > literal. If you don't have the time to fix the program to work correctly, compile it with "-fwritable-strings". -- Mike Pritchard mpp@minn.net "Go that way. Really fast. If something gets in your way, turn"