diff options
author | C. McEnroe | 2020-03-23 13:13:43 -0400 |
---|---|---|
committer | C. McEnroe | 2020-03-23 13:25:10 -0400 |
commit | cf1545870af2de418a6bccd4461f92330dc2f605 (patch) | |
tree | 48f674ba07d1d7e8fd223bc357abdf645b441803 /chat.h | |
parent | 3bb3a114542d3ac661bc49bd00d296695d5a4979 (diff) |
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.
Diffstat (limited to 'chat.h')
-rw-r--r-- | chat.h | 2 |
1 files changed, 2 insertions, 0 deletions
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; |