libscpi/src/parser.c
@@ -340,7 +340,8 @@ context->buffer.position -= totcmdlen; totcmdlen = 0; } else { if (context->parser_state.programHeader.type == SCPI_TOKEN_UNKNOWN) break; if (context->parser_state.programHeader.type == SCPI_TOKEN_UNKNOWN && context->parser_state.termination == SCPI_MESSAGE_TERMINATION_NONE) break; if (totcmdlen >= context->buffer.position) break; } }