From 1ae78d08e9a7d356c4b8555799ee42c9244c1b7d Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 15 Jun 2017 14:01:42 -0400 Subject: command: Encode MESSAGE_MIN in command_parser->max_size Add the message minimum into the stored constant so it does not need to be added at run-time. Signed-off-by: Kevin O'Connor --- src/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/command.c') diff --git a/src/command.c b/src/command.c index bdcb82fe..6bc42bed 100644 --- a/src/command.c +++ b/src/command.c @@ -192,7 +192,7 @@ _sendf(const struct command_encoder *ce, ...) return; writeb(&in_sendf, 1); - uint8_t buf_len = READP(ce->max_size) + MESSAGE_MIN; + uint8_t buf_len = READP(ce->max_size); char *buf = console_get_output(buf_len); if (!buf) goto done; -- cgit v1.2.3-70-g09d2