]> granicus.if.org Git - neomutt/commit
Convert mutt_expand_fmt() and rfc1524_expand_filename() to struct Buffer
authorKevin McCarthy <kevin@8t8.us>
Wed, 10 Apr 2019 00:52:14 +0000 (17:52 -0700)
committerRichard Russon <rich@flatcap.org>
Tue, 30 Apr 2019 16:45:37 +0000 (17:45 +0100)
commita2e8e6c6588a3d91326c10ee2d57d36852a8de9b
treef2bc67c1dcbef2011081b864507d1ea367a51511
parentf19fbbf74378f4d2652647b008ccaa2f72689fb6
Convert mutt_expand_fmt() and rfc1524_expand_filename() to struct Buffer

These two functions were tied together and so are converted at the
same time.

Note that rfc1524_expand_filename() had an off-by-one error for the
left hand size of the name template.  It was only copying i-1 instead
of the i characters before %s.

Co-authored-by: Richard Russon <rich@flatcap.org>
mutt/file.c
mutt/file.h
pattern.c
rfc1524.c
rfc1524.h