Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Feb 1996 13:16:24 -0700
From:      Nate Williams <nate@sri.MT.net>
To:        kline@tera.com (Gary Kline)
Cc:        questions@freebsd.org
Subject:   Re: mktemp()
Message-ID:  <199602142016.NAA27009@rocky.sri.MT.net>
In-Reply-To: <9602141821.AA15933@tera.com>
References:  <9602141821.AA15933@tera.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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.  

Are you calling mktemp() with memory that is writeable?  By default,
strings are constants and un-writeable.

> On the Suns at work, strtok and strsep both bomb with gcc v2.3.3
> and both work with the standard Sun CC.  

Try adding -fwriteable-strings and I'll bet it will work.


Nate



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