mirror of
https://github.com/rfivet/uemacs.git
synced 2025-06-07 08:03:41 -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:
parent
dbc51bf972
commit
0fc43a8429
2
input.c
2
input.c
@ -584,7 +584,7 @@ int getstring(char *prompt, char *buf, int nbuf, int eolchar)
|
|||||||
if (!iswild)
|
if (!iswild)
|
||||||
strcat(ffbuf, "*");
|
strcat(ffbuf, "*");
|
||||||
strcat(ffbuf, " >");
|
strcat(ffbuf, " >");
|
||||||
mktemp(tmp);
|
mkstemp(tmp);
|
||||||
strcat(ffbuf, tmp);
|
strcat(ffbuf, tmp);
|
||||||
strcat(ffbuf, " 2>&1");
|
strcat(ffbuf, " 2>&1");
|
||||||
system(ffbuf);
|
system(ffbuf);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user