From 4af9f0eea1670df1e1c11c6884b7bac34a3c1361 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 29 Oct 2017 01:12:42 +0200 Subject: Change buf size MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libsbus.h | 2 +- sbusd.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libsbus.h b/libsbus.h index 6ac4eed..cb078c8 100644 --- a/libsbus.h +++ b/libsbus.h @@ -4,7 +4,7 @@ #include -#define LIBSBUS_BUFFER_SIZE ((3UL << 17) - 1UL) +#define LIBSBUS_BUFFER_SIZE 409600 enum libsbus_packet_type { LIBSBUS_UNKNOWN, diff --git a/sbusd.c b/sbusd.c index b2b8e2c..2da0fed 100644 --- a/sbusd.c +++ b/sbusd.c @@ -351,7 +351,7 @@ broadcast(const char *msg, size_t n) static void handle_message(struct client *cl) { - static char buf[3 << 17]; + static char buf[409600 + 1]; int fd = cl->fd; ssize_t r; -- cgit v1.2.3-70-g09d2