summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhil Pennock <pdp@spodhuis.org>2010-07-04 13:42:34 -0700
committerPhil Pennock <pdp@spodhuis.org>2010-07-04 13:42:34 -0700
commit3346ab0144239462a8690e011bff1df8fd504076 (patch)
treebbe932ceb58be93790ba24de1eebb420f809fed7 /src
parentfdab5d492a9e928d2535bb021e8e044a16affa55 (diff)
Fix malware regression for cmdline scanner introduced in PP/08.
Notification from Dr Andrew Aitchison. (Also: make the PP/08 description more complete)
Diffstat (limited to 'src')
-rw-r--r--src/src/malware.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/src/malware.c b/src/src/malware.c
index f82bef63e..6e8b3f36d 100644
--- a/src/src/malware.c
+++ b/src/src/malware.c
@@ -1098,7 +1098,8 @@ static int malware_internal(uschar **listptr, uschar *eml_filename, BOOL faking)
"malware filename does not fit in buffer [malware_internal() cmdline]");
return DEFER;
}
- p = Ustrrchr(eml_filename, '/');
+ Ustrcpy(file_name, eml_filename);
+ p = Ustrrchr(file_name, '/');
if (p)
*p = '\0';
fits = string_format(commandline, sizeof(commandline), CS cmdline_scanner, file_name);