]> granicus.if.org Git - neomutt/commitdiff
enlarge query buffer
authorKarel Zak <kzak@redhat.com>
Sun, 27 Oct 2013 18:34:57 +0000 (11:34 -0700)
committerRichard Russon <rich@flatcap.org>
Mon, 4 Apr 2016 15:30:08 +0000 (16:30 +0100)
References: https://github.com/karelzak/mutt-kz/issues/67
Signed-off-by: Karel Zak <kzak@redhat.com>
mutt_notmuch.c

index 607098753b294bf7278ea64440212f255043bc21..7e8bd3c7a46b8aa1e3a6387367b2240f10a370fb 100644 (file)
@@ -1217,7 +1217,7 @@ done:
 char *nm_uri_from_query(CONTEXT *ctx, char *buf, size_t bufsz)
 {
        struct nm_ctxdata *data = get_ctxdata(ctx);
-       char uri[_POSIX_PATH_MAX];
+       char uri[_POSIX_PATH_MAX + LONG_STRING + 32];   /* path to DB + query + URI "decoration" */
 
        if (data)
                snprintf(uri, sizeof(uri), "notmuch://%s?query=%s",