aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ftpserver.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/ftpserver.pl b/tests/ftpserver.pl
index 2c969e101..708aabff6 100644
--- a/tests/ftpserver.pl
+++ b/tests/ftpserver.pl
@@ -175,8 +175,9 @@ sub sendcontrol {
}
my $log;
foreach $log (@_) {
- $log =~ s/[\r\n]//g;
- logmsg "> \"$log\"\n";
+ my $l = $log;
+ $l =~ s/[\r\n]//g;
+ logmsg "> \"$l\"\n";
}
}