diff --git a/src/ipc.h b/src/ipc.h index c0bd414..21fe210 100644 --- a/src/ipc.h +++ b/src/ipc.h @@ -16,7 +16,8 @@ #define RUNDIR "/run/ipc/" #define PATH_MAX 4096 #define IPC_HEADER_SIZE 6 -#define IPC_MAX_MESSAGE_SIZE 2000-IPC_HEADER_SIZE +#define __IPC_BASE_SIZE 2000000 // 2 MB, plenty enough space for messages +#define IPC_MAX_MESSAGE_SIZE __IPC_BASE_SIZE-IPC_HEADER_SIZE #define IPC_VERSION 4