From 04498c8e4f2fbe89174bf04b82bb9ed552bf3314 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Mon, 30 Jun 2008 17:12:29 +0000 Subject: Release 1.10 --- src/clamsmtpd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/clamsmtpd.c b/src/clamsmtpd.c index ab14081..deee41f 100644 --- a/src/clamsmtpd.c +++ b/src/clamsmtpd.c @@ -709,7 +709,9 @@ static int virus_action(clctx_t* ctx, const char* virus) if(g_clstate.quarantine) { strlcpy(qfilename, g_clstate.directory, MAXPATHLEN); - strlcat(qfilename, "/virus.", MAXPATHLEN); + if (qfilename[strlen(qfilename) - 1] != '/') + strlcat(qfilename, "/", MAXPATHLEN); + strlcat(qfilename, "virus.", MAXPATHLEN); /* Points to null terminator */ t = qfilename + strlen(qfilename); -- cgit v1.2.3