From cf1545870af2de418a6bccd4461f92330dc2f605 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Mon, 23 Mar 2020 13:13:43 -0400 Subject: Assume worst case for unknown user and host in splitMessage The default USERLEN of 9 doesn't have a great source, the RFC only says that nicks are length 9, so my assumption is that usernames are not longer. --- chat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chat.c') diff --git a/chat.c b/chat.c index e998812..9e3e374 100644 --- a/chat.c +++ b/chat.c @@ -64,7 +64,7 @@ enum Color idColors[IDCap] = { }; uint idNext = Network + 1; -struct Network network; +struct Network network = { .userLen = 9, .hostLen = 63 }; struct Self self = { .color = Default }; static const char *save; -- cgit 1.4.1