Fix a bug when parsing closing comments
commit535897b9ee895726e7896fdf29a52dc2212336db
authorNeil Mitchell <ndmitchell@gmail.com>
dateThu 15 Dec 2016, 08:37 (10 years ago)
parent539ba4e
CHANGES.txt+1
@@ -1,5 +1,6 @@
11Changelog for Hexml
22
3+ Fix a bug when parsing closing comments
34 #7, prefix all the C functions with hexml_
450.2
56 #6, remove buffer overruns
cbits/hexml.c+1−1
@@ -484,7 +484,7 @@ static str parse_content(document* d)
484484 return start_end(0, 0);
485485 }
486486 skip(d, 1);
487− if (peek_at(d, -3) == '-' && peek_at(d, -2))
487+ if (peek_at(d, -3) == '-' && peek_at(d, -2) == '-')
488488 break;
489489 }
490490 }