Fix wrong use of pointer-to-array as an array, CID #1434191.
[claws.git] / src / plugins / clamd / libclamd / clamd-plugin.c
index d88b131c3734c30f999fbb6e38beed8e9e1e7e8f..963cbca163712c6515b728fa3bfe627ddd387c39 100644 (file)
@@ -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;
 }