aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-06-15 14:01:42 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-06-29 13:33:58 -0400
commit1ae78d08e9a7d356c4b8555799ee42c9244c1b7d (patch)
tree22362290b90b5091be8a6ca9a6c5e50422e22b23 /src
parent1c3cbe9456aa97d7956283ef2f852f6c0489ab1f (diff)
downloadkutter-1ae78d08e9a7d356c4b8555799ee42c9244c1b7d.tar.gz
kutter-1ae78d08e9a7d356c4b8555799ee42c9244c1b7d.tar.xz
kutter-1ae78d08e9a7d356c4b8555799ee42c9244c1b7d.zip
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 <kevin@koconnor.net>
Diffstat (limited to 'src')
-rw-r--r--src/command.c2
1 files changed, 1 insertions, 1 deletions
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;