Selaa lähdekoodia

* xmlread.pp, a misplaced assignment could cause a #13 character to pass non-normalized to #10 if it was the last character in input stream.

git-svn-id: trunk@15974 -
sergei 15 vuotta sitten
vanhempi
commit
06c1413fb0
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      packages/fcl-xml/src/xmlread.pp

+ 1 - 1
packages/fcl-xml/src/xmlread.pp

@@ -896,8 +896,8 @@ begin
           Inc(FBuf);
           Inc(LFPos);
         end;
-        FBuf^ := #10;
       end;
+      FBuf^ := #10;
     end;
     #$85, #$2028: if FXML11Rules then
     begin