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:
William Pitcock 2011-11-29 16:16:38 -06:00
parent b583faf970
commit 7b42eab627

View file

@ -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)
{