fxied infinite loop

This commit is contained in:
djk 1999-10-31 21:59:59 +00:00
parent b9442c2b06
commit ce2e3045ba
2 changed files with 5 additions and 1 deletions

View File

@ -270,6 +270,10 @@ sub dochat
$line = <$rfh>;
$line =~ s/\r//og;
}
if (length $line == 0) {
dbg('connect', "received 0 length line, aborting...");
cease(11);
}
dbg('connect', "received \"$line\"");
if ($abort && $line =~ /$abort/i) {
dbg('connect', "aborted on /$abort/");

View File

@ -137,7 +137,7 @@ sub measure
# display the top screen
sub show_screen
{
if ($spos == @shistory - 1) {
if ($spos >= @shistory - 1) {
# if we really are scrolling thru at the end of the history
my $line = $shistory[$spos];