aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-05-02 11:55:17 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-05-02 11:55:17 +0000
commited9e10f2d8882cb8b9452aea96900d9dc4e78c97 (patch)
tree3cc560092a9ad7cd4528099439b023ef00bc0917
parent02ae3c2810a58ba4420417f914835314a6c56377 (diff)
another <case> converted to sysread
-rw-r--r--tests/ftpserver.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/ftpserver.pl b/tests/ftpserver.pl
index 4c7643ad7..abc0f74c8 100644
--- a/tests/ftpserver.pl
+++ b/tests/ftpserver.pl
@@ -123,7 +123,8 @@ sub startsf {
print STDERR "$cmd\n" if($verbose);
print SFWRITE "PING\n";
- my $pong = <SFREAD>;
+ my $pong;
+ sysread SFREAD, $pong, 5;
if($pong !~ /^PONG/) {
logmsg "Failed sockfilt command: $cmd\n";