talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 230d47a8a5f98eb3a6e44d98b5796a3fd8f5fac9
parent 45eaea6de4237e6aab2a2fc3b333a520ae4876d1
Author: wwp <wwp@free.fr>
Date:   Wed, 11 Apr 2018 08:57:32 +0200

Fix wrong use of pointer-to-array as an array, CID #1434191.

Diffstat:
Msrc/plugins/clamd/libclamd/clamd-plugin.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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; }