diff options
author | Horst von Brand <vonbrand@inf.utfsm.cl> | 2005-10-01 21:22:20 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-10-01 20:07:33 -0700 |
commit | 0fc43a842945b46a3831620a8d42b54fffafb6a8 (patch) | |
tree | 48ad6dad6a5477300c61ea2271ce88f027b0057a | |
parent | dbc51bf97222bee5845d3d7a5bd1d91be05e4416 (diff) | |
download | uemacs-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |