projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix some bugs
[spider.git]
/
perl
/
Msg.pm
diff --git
a/perl/Msg.pm
b/perl/Msg.pm
index 02795812e40bc5da3445953b0e56e382ff46ef27..774db635e627f0aeae5cc24fb7da8ce00f63116e 100644
(file)
--- a/
perl/Msg.pm
+++ b/
perl/Msg.pm
@@
-244,6
+244,7
@@
sub _rcv { # Complement to _send
if ($bytes_read > 0) {
if ($msg =~ /\n/) {
@lines = split /\r?\n/, $msg;
+ $lines[0] = '' unless @lines;
$lines[0] = $conn->{msg} . $lines[0] if exists $conn->{msg};
push @lines, ' ' unless @lines;
if ($msg =~ /\n$/) {