Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Feb 1996 14:08:46 -0600 (CST)
From:      "Mike Pritchard" <mpp@mpp.minn.net>
To:        wollman@lcs.mit.edu (Garrett A. Wollman)
Cc:        kline@tera.com, questions@FreeBSD.org
Subject:   Re: mktemp()
Message-ID:  <199602142008.OAA05138@mpp.minn.net>
In-Reply-To: <9602141911.AA06754@halloran-eldar.lcs.mit.edu> from "Garrett A. Wollman" at Feb 14, 96 02:11:34 pm

next in thread | previous in thread | raw e-mail | index | archive | help
Garrett A. Wollman wrote:
> 
> <<On Wed, 14 Feb 1996 10:22:04 -0800 (PST), kline@tera.com (Gary Kline) said:
> 
> > 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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199602142008.OAA05138>