mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[lua] called tempname.
This commit is contained in:
parent
cfe564167b
commit
73c632f00c
@ -265,11 +265,11 @@ l_execute(LS)
|
||||
static int
|
||||
l_tmpname(LS)
|
||||
{
|
||||
char *fn = tempnam(NULL, "elinks");
|
||||
char *fn = tempname(NULL, "elinks", NULL);
|
||||
|
||||
if (fn) {
|
||||
lua_pushstring(S, fn);
|
||||
free(fn);
|
||||
mem_free(fn);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user