From 83066496928a978b5e600b301c28400cb497489f Mon Sep 17 00:00:00 2001 From: Bjorn Andersson Date: Fri, 30 Nov 2018 10:58:40 -0800 Subject: [PATCH] conmux: Bump max response length When a conmux is already attached the motd becomes quite long, surpassing the 128 bytes, bump the max response length. This solves the problem sometimes seen as: bad: parsing reqistry lookup response: truncated percent-encoding Signed-off-by: Bjorn Andersson --- conmux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conmux.c b/conmux.c index 9767abd..edd5ebd 100644 --- a/conmux.c +++ b/conmux.c @@ -143,7 +143,7 @@ static int registry_lookup(const char *service, struct conmux_lookup *result) { struct conmux_response resp = {}; struct sockaddr_in saddr; - char buf[128]; + char buf[256]; ssize_t n; char *p; int ret; @@ -232,7 +232,7 @@ void *conmux_open(struct device *dev) struct hostent *hent; const char *service = dev->cdb_serial; ssize_t n; - char req[128]; + char req[256]; int ret; int fd;