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

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

View File

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