aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libsbus.h2
-rw-r--r--sbusd.c2
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 <stdlib.h>
-#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;