[Commits] [SCM] claws branch, gtk3, updated. 3.16.0-1017-g4dc870e1e
wwp at claws-mail.org
wwp at claws-mail.org
Thu Oct 15 13:21:54 CEST 2020
The branch, gtk3 has been updated
via 4dc870e1e1ded4daadf82d86cd6cd9fee7cb9d5a (commit)
from 734ced1eb299e644d9aa7d3ea32ab5cf186bf5e7 (commit)
Summary of changes:
src/quote_fmt_parse.y | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 4dc870e1e1ded4daadf82d86cd6cd9fee7cb9d5a
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