diff --git a/src/gmnlm.c b/src/gmnlm.c
index 8fffc01b8a3581f97dc38dbd43008ceca920f3e8..647899d41fd3c61b7a1bb16363b2eb4360f35128 100644
--- a/src/gmnlm.c
+++ b/src/gmnlm.c
@@ -241,7 +241,7 @@ while(getline(&line, &len, fi) != -1) {
if (strncmp(line, url, n)==0) {
fprintf(browser->tty, "Bookmark removed!\n");
} else {
- fprintf(fo, line);
+ fprintf(fo, "%s", line);
}
}
@@ -776,8 +776,8 @@ if (res != GEMINI_OK) {
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);