diff options
-rw-r--r-- | libsbus.h | 2 | ||||
-rw-r--r-- | sbusd.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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, @@ -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; |