[Commits] [SCM] claws branch, master, updated. 3.17.7-5-gd230db1b2

wwp at claws-mail.org wwp at claws-mail.org
Thu Oct 15 13:21:00 CEST 2020


The branch, master has been updated
       via  d230db1b24154d9a0e4edb1fa524bf748ad37f25 (commit)
      from  b1e286dee7ea716a22bb4cfb04175aeaac0fe942 (commit)

Summary of changes:
 src/quote_fmt_parse.y | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


- Log -----------------------------------------------------------------
commit d230db1b24154d9a0e4edb1fa524bf748ad37f25
Author: wwp <subscript at free.fr>
Date:   Thu Oct 15 13:17:24 2020 +0200

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

diff --git a/src/quote_fmt_parse.y b/src/quote_fmt_parse.y
index fbc4fc38a..e95b39870 100644
--- 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 */

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list