1
0
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:
Witold Filipczyk 2021-04-03 21:14:21 +02:00
parent cfe564167b
commit 73c632f00c

View File

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