[Commits] [SCM] claws branch, master, updated. 3.18.0-109-g8ef8b8a42

wwp at claws-mail.org wwp at claws-mail.org
Sat Sep 11 23:30:18 CEST 2021


The branch, master has been updated
       via  8ef8b8a42a941f07f0e6b61aee167b853fd16f4c (commit)
      from  d5170988d48fa480bb70f4e33ed3ff2a320a4dfd (commit)

Summary of changes:
 src/action.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit 8ef8b8a42a941f07f0e6b61aee167b853fd16f4c
Author: wwp <subscript at free.fr>
Date:   Sat Sep 11 23:29:51 2021 +0200

    Better check for read() errors.

diff --git a/src/action.c b/src/action.c
index 50dc54c75..12029f8d4 100644
--- a/src/action.c
+++ b/src/action.c
@@ -1570,7 +1570,7 @@ static void catch_output(gpointer data, gint source, GIOCondition cond)
 			gchar *ret_str;
 
 			c = read(source, buf, sizeof(buf) - 1);
-			if (c == 0)
+			if (c <= 0)
 				break;
 
 			buf[c] = 0;

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list