diff options
Diffstat (limited to 'include/parserutils/input/inputstream.h')
-rw-r--r-- | include/parserutils/input/inputstream.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/parserutils/input/inputstream.h b/include/parserutils/input/inputstream.h index eb33307..df35c0d 100644 --- a/include/parserutils/input/inputstream.h +++ b/include/parserutils/input/inputstream.h @@ -139,9 +139,6 @@ static inline parserutils_error parserutils_inputstream_peek( #undef IS_ASCII - if (off != utf8_len && error != PARSERUTILS_NEEDDATA) - abort(); - return parserutils_inputstream_peek_slow(stream, offset, ptr, length); } @@ -163,7 +160,7 @@ static inline void parserutils_inputstream_advance( #endif if (bytes > stream->utf8->length - stream->cursor) - abort(); + bytes = stream->utf8->length - stream->cursor; if (stream->cursor == stream->utf8->length) return; |