From: Richard Russon Date: Thu, 2 Aug 2018 16:06:12 +0000 (+0100) Subject: add missing copy to path parser X-Git-Tag: 2019-10-25~717 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=048cad1ec09b50058005a89e860f335f1648f9ba;p=neomutt add missing copy to path parser --- diff --git a/init.c b/init.c index 143ff8906..6186eb531 100644 --- 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) {