on master help sign in
Fix a bug when parsing closing comments
535897bNeil Mitchell
CHANGES.txt+1
@@ -1,5 +1,6 @@
1Changelog for Hexml
1Changelog for Hexml
2
2
3+ Fix a bug when parsing closing comments
3 #7, prefix all the C functions with hexml_
4 #7, prefix all the C functions with hexml_
40.2
50.2
5 #6, remove buffer overruns
6 #6, remove buffer overruns
cbits/hexml.c+1−1
@@ -484,7 +484,7 @@ static str parse_content(document* d)
484 return start_end(0, 0);
484 return start_end(0, 0);
485 }
485 }
486 skip(d, 1);
486 skip(d, 1);
487− if (peek_at(d, -3) == '-' && peek_at(d, -2))
487+ if (peek_at(d, -3) == '-' && peek_at(d, -2) == '-')
488 break;
488 break;
489 }
489 }
490 }
490 }