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.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'chat.h') diff --git a/chat.h b/chat.h index 468d864..3f93f3d 100644 --- a/chat.h +++ b/chat.h @@ -84,6 +84,8 @@ static inline enum Color hash(const char *str) { extern struct Network { char *name; + uint userLen; + uint hostLen; char *chanTypes; char *prefixes; char *prefixModes; -- cgit 1.4.1-2-gfad0