Date: Tue, 22 Oct 1996 00:06:24 +1000 (EST) From: michael butler <imb@scgt.oz.au> To: rlb@mindspring.com (Ron Bolin) Cc: freebsd-current@FreeBSD.org Subject: Re: mktemp BUG? Message-ID: <199610211406.AAA16493@asstdc.scgt.oz.au> In-Reply-To: <326AD788.167EB0E7@mindspring.com> from Ron Bolin at "Oct 20, 96 09:53:12 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
Ron Bolin writes: > Just checking my system and sanity. The mktemp(char *) function > dumps core everytime. Seems to be a problem in the C lib version. > Can anyone else duplicate this bug? > #include <stdlib.h> > char *tmp = mktemp("/tmp/cp.XXXXXX"); You have two alternatives: i) fix the problem by copying the const string into an appropriately sized buffer or .. ii) avoid the problem by compiling with '-fwritable-strings' michael
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610211406.AAA16493>