summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2008-06-30 17:12:29 +0000
committerStef Walter <stef@memberwebs.com>2008-06-30 17:12:29 +0000
commit04498c8e4f2fbe89174bf04b82bb9ed552bf3314 (patch)
treec9ec7f18484ac8167d5fcedd269bdc0afcb9f1e9 /src
parent7561cc8758be2f1d17d1e856a8e268d3fcf402b3 (diff)
Release 1.10
Diffstat (limited to 'src')
-rw-r--r--src/clamsmtpd.c4
1 files changed, 3 insertions, 1 deletions
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);