[Commits] [SCM] claws branch, gtk3, updated. 3.16.0-1015-g98b46f2a7
paul at claws-mail.org
paul at claws-mail.org
Thu Oct 15 10:05:53 CEST 2020
The branch, gtk3 has been updated
via 98b46f2a7d1dfd91cfb1afcde1bf181ad287b57e (commit)
from dd34eaff7431694da32dabf506486fc86ed2fd74 (commit)
Summary of changes:
src/quote_fmt_parse.y | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 98b46f2a7d1dfd91cfb1afcde1bf181ad287b57e
Author: wwp <subscript at free.fr>
Date: Thu Oct 15 09:04:24 2020 +0200
Use PATH_MAX instead of a hard-coded 256 path limit.
diff --git a/src/quote_fmt_parse.y b/src/quote_fmt_parse.y
index 663a9ed6b..fbc4fc38a 100644
--- a/src/quote_fmt_parse.y
+++ b/src/quote_fmt_parse.y
@@ -508,7 +508,7 @@ static void quote_fmt_show_msg(MsgInfo *msginfo, const gchar *body,
static void quote_fmt_insert_file(const gchar *filename)
{
FILE *file;
- char buffer[256];
+ char buffer[PATH_MAX];
if ((file = g_fopen(filename, "rb")) != NULL) {
while (fgets(buffer, sizeof(buffer), file)) {
@@ -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[256];
+ char buffer[PATH_MAX];
if ((file = popen(progname, "r")) != NULL) {
while (fgets(buffer, sizeof(buffer), file)) {
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list