]> granicus.if.org Git - neomutt/commitdiff
add missing copy to path parser
authorRichard Russon <rich@flatcap.org>
Thu, 2 Aug 2018 16:06:12 +0000 (17:06 +0100)
committerRichard Russon <rich@flatcap.org>
Thu, 2 Aug 2018 16:10:35 +0000 (17:10 +0100)
init.c

diff --git a/init.c b/init.c
index 143ff89068f06e98c54ea5170270012c992ff4f4..6186eb531a92196705b01a2ac16b665e8bb602c8 100644 (file)
--- a/init.c
+++ b/init.c
@@ -1738,6 +1738,7 @@ static int parse_set(struct Buffer *buf, struct Buffer *s, unsigned long data,
           {
             mutt_expand_path(buf->data, buf->dsize);
             char scratch[PATH_MAX];
+            mutt_str_strfcpy(scratch, buf->data, sizeof(scratch));
             size_t scratchlen = mutt_str_strlen(scratch);
             if (scratchlen != 0)
             {