1
0
mirror of https://github.com/rfivet/uemacs.git synced 2024-09-24 06:35:54 -04:00

[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>
This commit is contained in:
Horst von Brand 2005-10-01 21:22:20 -04:00 committed by Linus Torvalds
parent dbc51bf972
commit 0fc43a8429

View File

@ -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);