cgmnlm

Unnamed repository; edit this file 'description' to name the repository.
git clone git://code.clttr.info/cgmnlm.git
Log | Files | Refs | README | LICENSE

commit c88e697b3309784e67a7b0d44423494fbda01774
parent a40dfb562c3abfdf884f963fed337ce558c70c55
Author: René Wagner <rwa@clttr.info>
Date:   Mon,  1 Nov 2021 19:34:40 +0100

use tmpnam() instead of mkstemp() for temp file names

closes #20

Diffstat:
Msrc/gmnlm.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gmnlm.c b/src/gmnlm.c @@ -772,7 +772,7 @@ do_prompts(const char *prompt, struct browser *browser) fprintf(stderr, "Error: %s\n", gemini_strerr(res, &resp)); } else { - close(mkstemp(tempfile)); + tmpnam(tempfile); download_resp(browser->tty, resp, tempfile, url); } gemini_response_finish(&resp);