fix warning

git-svn: trunk@4965
This commit is contained in:
Török Edvin
2009-03-20 18:10:40 +00:00
parent 2a49102bd3
commit 3e552ab69b
2 changed files with 5 additions and 1 deletions

View File

@@ -1,3 +1,7 @@
Fri Mar 20 20:10:26 EET 2009 (edwin)
------------------------------------
* unit_tests/check_clamd.c: fix warning
Thu Mar 19 19:25:08 CET 2009 (acab)
-----------------------------------
* clamav-milter: add option LogInfected

View File

@@ -395,7 +395,7 @@ static int sendmsg_fd(int sockd, const char *mesg, size_t msg_len, int fd, int s
iov[0].iov_len = 1;
} else {
/* send single message with ancillary data */
fail_unless(msg_len < sizeof(dummy)-1);
fail_unless(msg_len < sizeof(dummy)-1, "message too large");
memcpy(dummy, mesg, msg_len);
dummy[msg_len] = '\0';
iov[0].iov_base = dummy;