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 6e3c8e48f98c008abda2bbf7a2bbdb8ea3988b18
parent 4e73bec32786491b54ba3f2b1e93e6e28bd4f4be
Author: René Wagner <rwa@clttr.info>
Date:   Mon,  1 Nov 2021 09:24:40 +0100

fix warnings

Diffstat:
Msrc/gmnlm.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/gmnlm.c b/src/gmnlm.c @@ -241,7 +241,7 @@ remove_bookmark(struct browser *browser) if (strncmp(line, url, n)==0) { fprintf(browser->tty, "Bookmark removed!\n"); } else { - fprintf(fo, line); + fprintf(fo, "%s", line); } } @@ -776,8 +776,8 @@ do_prompts(const char *prompt, struct browser *browser) fprintf(stderr, "Error: %s\n", gemini_strerr(res, &resp)); } else { - char tempfile[] = "/tmp/cgmnlm_XXXXXXXX"; - mkstemp(tempfile); + char tempfile[] = "/tmp/cgmnlm_XXXXXX"; + close(mkstemp(tempfile)); download_resp(browser->tty, resp, tempfile, url); } gemini_response_finish(&resp);