]> code.citadel.org Git - citadel.git/blobdiff - citadel/server/modules/clamav/serv_virus.c
CM_SetField() no longer accepts a length, just uses strdup()
[citadel.git] / citadel / server / modules / clamav / serv_virus.c
index 5149988d3b118e6638593c46bc8b1cb75fb1c484..9971331f9ca49c6e8f58b8d8a4a1411f7e308baa 100644 (file)
@@ -4,7 +4,7 @@
  * http://clamav.net (the ClamAV project is not in any way
  * affiliated with the Citadel project).
  *
- * Copyright (c) 1987-2022 by the citadel.org team
+ * Copyright (c) 1987-2023 by the citadel.org team
  *
  * This program is open source software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 3.
@@ -158,7 +158,7 @@ int clamd(struct CtdlMessage *msg, struct recptypes *recp) {
        }
 
        if (is_virus) {
-               CM_SetField(msg, eErrorMsg, HKEY("message rejected by virus filter"));
+               CM_SetField(msg, eErrorMsg, "message rejected by virus filter");
        }
 
 bail:  close(sock);