[Commits] [SCM] claws branch, master, updated. 3.17.3-103-g33f351e
mones at claws-mail.org
mones at claws-mail.org
Tue Feb 19 19:24:00 CET 2019
The branch, master has been updated
via 33f351e459af8e4d203a646a649e9ab18d659ae2 (commit)
via 0c4eda32e480795f5dd97e10014d72e5af96ee29 (commit)
from 655a159a37d09813988879af691c76748d5886fc (commit)
Summary of changes:
src/main.c | 19 +++++++++++++++----
1 file changed, 15 insertions(+), 4 deletions(-)
- Log -----------------------------------------------------------------
commit 33f351e459af8e4d203a646a649e9ab18d659ae2
Author: Ricardo Mones <ricardo at mones.org>
Date: Tue Feb 19 19:23:38 2019 +0100
Check result of fputs (CID 1440024)
diff --git a/src/main.c b/src/main.c
index 1fc5c70..518ea75 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2417,7 +2417,10 @@ static gint prohibit_duplicate_launch(void)
fd_gets(uxsock, buf, sizeof(buf) - 1);
buf[sizeof(buf) - 1] = '\0';
if (!strncmp(buf, ".\n", 2)) break;
- claws_fputs(buf, stdout);
+ if (claws_fputs(buf, stdout) == EOF) {
+ g_warning("writing to stdout failed.");
+ break;
+ }
}
} else if (cmd.exit) {
fd_write_all(uxsock, "exit\n", 5);
@@ -2428,7 +2431,10 @@ static gint prohibit_duplicate_launch(void)
fd_gets(uxsock, buf, sizeof(buf) - 1);
buf[sizeof(buf) - 1] = '\0';
if (!strncmp(buf, ".\n", 2)) break;
- claws_fputs(buf, stdout);
+ if (claws_fputs(buf, stdout) == EOF) {
+ g_warning("writing to stdout failed.");
+ break;
+ }
}
} else if (cmd.reset_statistics) {
fd_write(uxsock, "reset_statistics\n", 17);
@@ -2448,7 +2454,10 @@ static gint prohibit_duplicate_launch(void)
fd_gets(uxsock, buf, sizeof(buf) - 1);
buf[sizeof(buf) - 1] = '\0';
if (!strncmp(buf, ".\n", 2)) break;
- claws_fputs(buf, stdout);
+ if (claws_fputs(buf, stdout) == EOF) {
+ g_warning("writing to stdout failed.");
+ break;
+ }
}
} else {
#ifdef G_OS_UNIX
commit 0c4eda32e480795f5dd97e10014d72e5af96ee29
Author: Ricardo Mones <ricardo at mones.org>
Date: Tue Feb 19 19:23:10 2019 +0100
Check writting crash-indicator (CID 1440021)
diff --git a/src/main.c b/src/main.c
index 60551af..1fc5c70 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1440,7 +1440,9 @@ int main(int argc, char *argv[])
folder_item_update_freeze();
}
/* make the crash-indicator file */
- str_write_to_file("foo", get_crashfile_name(), FALSE);
+ if (str_write_to_file("foo", get_crashfile_name(), FALSE) < 0) {
+ g_warning("Can't create the crash-indicator file.");
+ }
inc_autocheck_timer_init(mainwin);
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list