- ::isPath was not observing the null character string terminator.
This commit is contained in:
Paul Beckingham 2015-03-05 21:22:40 -05:00
parent d1f7e44811
commit e11b333a0b

View file

@ -804,7 +804,8 @@ bool Lexer::isPath (std::string& token, Lexer::Type& type)
_text[marker] != '/') _text[marker] != '/')
{ {
utf8_next_char (_text, marker); utf8_next_char (_text, marker);
while (! isWhitespace (_text[marker]) && while (_text[marker] &&
! isWhitespace (_text[marker]) &&
_text[marker] != '/') _text[marker] != '/')
utf8_next_char (_text, marker); utf8_next_char (_text, marker);
} }