hirc

IRC client
Log | Files | Refs

commit cedc0f173bb1325d5278d989c2fe7c8e31c544ef
parent 4a0305df5ec381fc60be65da6bca10472823594d
Author: hhvn <dev@hhvn.uk>
Date:   Sat, 23 Oct 2021 23:08:36 +0100

hirc.h ui.c: define length for input.string

Diffstat:
Mhirc.h | 1+
Mui.c | 2+-
2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/hirc.h b/hirc.h @@ -4,6 +4,7 @@ #include "struct.h" #include "config.h" #define PARAM_MAX 64 +#define INPUT_MAX 8192 /* main.c */ void * emalloc(size_t size); diff --git a/ui.c b/ui.c @@ -19,7 +19,7 @@ struct Channel *selected_channel = NULL; struct Server *selected_server = NULL; struct { - char string[8192]; + char string[INPUT_MAX]; unsigned counter; } input;