aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHorst von Brand <vonbrand@inf.utfsm.cl>2005-10-01 21:22:20 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-10-01 20:07:33 -0700
commit0fc43a842945b46a3831620a8d42b54fffafb6a8 (patch)
tree48ad6dad6a5477300c61ea2271ce88f027b0057a
parentdbc51bf97222bee5845d3d7a5bd1d91be05e4416 (diff)
downloaduemacs-0fc43a842945b46a3831620a8d42b54fffafb6a8.tar.gz
[PATCH] Fix use of mktemp() in uemacs
After your last round of changes it compiles without warnings here (Fedora rawhide, gcc-4.0.2), but the link complains. mktemp(3) isn't always secure, the problem is fixed in mkstemp(3) Signed-off-by: Horst H. von Brand <vonbrand@inf.utfsm.cl> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/input.c b/input.c
index 4a57bf4..bc5a12d 100644
--- a/input.c
+++ b/input.c
@@ -584,7 +584,7 @@ int getstring(char *prompt, char *buf, int nbuf, int eolchar)
if (!iswild)
strcat(ffbuf, "*");
strcat(ffbuf, " >");
- mktemp(tmp);
+ mkstemp(tmp);
strcat(ffbuf, tmp);
strcat(ffbuf, " 2>&1");
system(ffbuf);