mirror of
https://github.com/matrix-construct/construct
synced 2025-01-19 02:51:51 +01:00
Make sure ConfigFileEntry.nicklen follows the same semantics as real NICKLEN.
Otherwise, truncation would be one byte too short on nick changes.
This commit is contained in:
parent
b583faf970
commit
7b42eab627
1 changed files with 1 additions and 1 deletions
|
@ -268,7 +268,7 @@ conf_set_serverinfo_nicklen(void *data)
|
|||
if (nicklen_set)
|
||||
return;
|
||||
|
||||
ConfigFileEntry.nicklen = *(unsigned int *) data;
|
||||
ConfigFileEntry.nicklen = (*(unsigned int *) data) + 1;
|
||||
|
||||
if (ConfigFileEntry.nicklen > NICKLEN)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue