]> granicus.if.org Git - neomutt/commitdiff
Increase length of attachment pipe command
authorAlyssa Ross <hi@alyssa.is>
Sun, 18 Aug 2019 10:07:17 +0000 (10:07 +0000)
committerRichard Russon <rich@flatcap.org>
Sun, 18 Aug 2019 16:04:27 +0000 (17:04 +0100)
This matches the length of the pipe command for messages, and is much
less likely to be hit accidentally.

recvattach.c

index ecaebe14ecae8987eb845f3e9463fdb1127482bf..e82be9d7624d276b3338a542ef0f412009e55f79 100644 (file)
@@ -871,7 +871,7 @@ void mutt_pipe_attachment_list(struct AttachCtx *actx, FILE *fp, bool tag,
                                struct Body *top, bool filter)
 {
   struct State state = { 0 };
-  char buf[128];
+  char buf[PATH_MAX];
 
   if (fp)
     filter = false; /* sanity check: we can't filter in the recv case yet */