[Commits] [SCM] claws branch, master, updated. 3.16.0-115-gd4cdaf0
wwp at claws-mail.org
wwp at claws-mail.org
Wed Apr 11 08:58:08 CEST 2018
The branch, master has been updated
via d4cdaf0f6ee9581c9ae5e8e7bccf4f05a69c33ab (commit)
from 171d89917efbe3aa18324e831baaeaadb01dd2a7 (commit)
Summary of changes:
src/plugins/clamd/libclamd/clamd-plugin.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
- Log -----------------------------------------------------------------
commit d4cdaf0f6ee9581c9ae5e8e7bccf4f05a69c33ab
Author: wwp <wwp at free.fr>
Date: Wed Apr 11 08:57:32 2018 +0200
Fix wrong use of pointer-to-array as an array, CID #1434191.
diff --git a/src/plugins/clamd/libclamd/clamd-plugin.c b/src/plugins/clamd/libclamd/clamd-plugin.c
index d88b131..963cbca 100644
--- a/src/plugins/clamd/libclamd/clamd-plugin.c
+++ b/src/plugins/clamd/libclamd/clamd-plugin.c
@@ -499,7 +499,7 @@ static Clamd_Stat clamd_stream_scan(int sock,
*res = g_strconcat("ERROR -> ", _("Socket read error"), NULL);
return SCAN_ERROR;
}
- res[n_read] = '\0';
+ (*res)[n_read] = '\0';
debug_print("received: %s\n", *res);
return OK;
}
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list