1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 21:27:44 +00:00

LibWeb: Fix Off-by-one error in CSS::Parser::next_token()

This commit is contained in:
Sam Atkins 2021-07-09 16:31:12 +01:00 committed by Andreas Kling
parent 06cd418770
commit 06fc099310

View file

@ -49,7 +49,7 @@ Token Parser::peek_token()
Token Parser::next_token() Token Parser::next_token()
{ {
if (m_iterator_offset < (int)m_tokens.size()) { if (m_iterator_offset < (int)m_tokens.size() - 1) {
++m_iterator_offset; ++m_iterator_offset;
} }