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

index 700448e8c87510ab371c8c6f8438f2e088376475..6d075376df11037507c435f84deef643711fd914 100644

--- a/src/gmnlm.c

+++ b/src/gmnlm.c

@@ -784,7 +784,7 @@ gemini_response_finish(&resp);

set_url(browser, save_url, NULL);

}

if (in[0] == 'e' || browser->autoopen) {

- char target[1024];

+ char target[1050];

snprintf(target, sizeof(target), "xdg-open %s >/dev/null 2>&1", in[0] == 't' ? tempfile : url);

if ( !system(target) ) fprintf(browser->tty, "Link send to xdg-open\n");

}