Skip to content

Commit

Permalink
Merge pull request #188 from rufanov/master
Browse files Browse the repository at this point in the history
Fixes Issue #187
  • Loading branch information
jamietre committed May 22, 2015
2 parents 6e37b76 + baa2839 commit b88e6ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/CsQuery/HtmlParser/ElementFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ public IDomDocument Parse(Stream inputStream, Encoding encoding)
byte[] part1bytes = new byte[preprocessorBlockBytes];
int part1size = inputStream.Read(part1bytes, 0, preprocessorBlockBytes);

MemoryStream part1stream = new MemoryStream(part1bytes);
MemoryStream part1stream = new MemoryStream(part1bytes, 0, part1size);

if (part1stream.Length==0)
{
Expand Down

0 comments on commit b88e6ea

Please sign in to comment.