diff options
author | Mattias Andrée <maandree@kth.se> | 2017-10-29 01:12:42 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2017-10-29 01:12:42 +0200 |
commit | 4af9f0eea1670df1e1c11c6884b7bac34a3c1361 (patch) | |
tree | 9472391a26dbdc355d595c0f9b25a9c08ab89e36 | |
parent | Replace CMSG !/cred/prefix with !/cred/whoami (diff) | |
download | sbus-4af9f0eea1670df1e1c11c6884b7bac34a3c1361.tar.gz sbus-4af9f0eea1670df1e1c11c6884b7bac34a3c1361.tar.bz2 sbus-4af9f0eea1670df1e1c11c6884b7bac34a3c1361.tar.xz |
Change buf size
Signed-off-by: Mattias Andrée <maandree@kth.se>
-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; |