Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Sep 1997 14:42:04 -0400 (EDT)
From:      Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
To:        Malcolm Boff <Malcolm_Boff@compuserve.com>
Cc:        freebsd-bugs <freebsd-bugs@FreeBSD.ORG>
Subject:   Problem with subroutine 'mktemp'
Message-ID:  <199709291842.OAA12625@khavrinen.lcs.mit.edu>
In-Reply-To: <199709291402_MC2-222B-DF8C@compuserve.com>
References:  <199709291402_MC2-222B-DF8C@compuserve.com>

next in thread | previous in thread | raw e-mail | index | archive | help
<<On Mon, 29 Sep 1997 14:01:44 -0400, Malcolm Boff <Malcolm_Boff@compuserve.com> said:

>         rc = mktemp("/tmp/abcXXXXXX");

Programmer error.  Literal strings are constants.  mktemp() modifies
its arguments.

-GAWollman

--
Garrett A. Wollman   | O Siem / We are all family / O Siem / We're all the same
wollman@lcs.mit.edu  | O Siem / The fires of freedom 
Opinions not those of| Dance in the burning flame
MIT, LCS, CRS, or NSA|                     - Susan Aglukark and Chad Irschick



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