diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/src/malware.c | 3 |
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); |