diff --git a/src/gmnlm.c b/src/gmnlm.c

index 4a5932482fe706e3c91636e95694b0d4b8feb53b..8fffc01b8a3581f97dc38dbd43008ceca920f3e8 100644

--- a/src/gmnlm.c

+++ b/src/gmnlm.c

@@ -810,12 +810,7 @@ result = PROMPT_AGAIN;

goto exit;

}

set_url(browser, url, NULL);

- char file[1024] = {0};

- strncpy(file, trim_ws(&in[1]), sizeof(file));

- if (file[0] == '~') {

- snprintf(file, sizeof(file), "%s%s", getenv("HOME"), &trim_ws(&in[1])[1]);

- }

- download_resp(browser->tty, resp, file, url);

+ download_resp(browser->tty, resp, trim_ws(&in[1]), url);

gemini_response_finish(&resp);

result = PROMPT_AGAIN;

goto exit;

@@ -963,7 +958,7 @@

fprintf(out, "\n");

char *text = NULL;

int row = 0, col = 0;

- bool alttext_printed;

+ bool alttext_printed = false;

struct gemini_token tok;

struct link **next = &browser->links;

// When your screen is too narrow, more lines will be used for helptext and URL.