92_FileLog.pm: fix bug itrodiced with last bugfix (Forum #45546)

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@10161 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2015-12-12 16:50:50 +00:00
parent 89c67de9df
commit a69801289c

View File

@ -911,7 +911,7 @@ seekBackOneLine($$)
while($pos > 0) { # skip current CR/NL while($pos > 0) { # skip current CR/NL
$fh->seek(--$pos, 0); $fh->seek(--$pos, 0);
$fh->read($buf, 1); $fh->read($buf, 1);
last if($buf ne "\n" || $buf ne "\r"); last if($buf ne "\n" && $buf ne "\r");
} }
$fh->seek($pos, 0); $fh->seek($pos, 0);