talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 4dc870e1e1ded4daadf82d86cd6cd9fee7cb9d5a
parent 734ced1eb299e644d9aa7d3ea32ab5cf186bf5e7
Author: wwp <subscript@free.fr>
Date:   Thu, 15 Oct 2020 13:17:24 +0200

Use a correct buffer size here (BUFFSIZE), PATH_MAX has nothing to do with
what's needed.

Diffstat:
Msrc/quote_fmt_parse.y | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/quote_fmt_parse.y b/src/quote_fmt_parse.y @@ -522,7 +522,7 @@ static void quote_fmt_insert_file(const gchar *filename) static void quote_fmt_insert_program_output(const gchar *progname) { FILE *file; - char buffer[PATH_MAX]; + char buffer[BUFFSIZE]; if ((file = popen(progname, "r")) != NULL) { while (fgets(buffer, sizeof(buffer), file)) { @@ -566,7 +566,7 @@ static void quote_fmt_attach_file(const gchar *filename) static void quote_fmt_attach_file_program_output(const gchar *progname) { FILE *file; - char buffer[PATH_MAX]; + char buffer[BUFFSIZE]; if ((file = popen(progname, "r")) != NULL) { /* get first line only */