Fix a buffer overflow when initializing the random salt for "+x"

This "off by one" buffer overflow has been introduced in commit 49385a98,
"Implemented hashed cloaked hostnames for +x".
This commit is contained in:
Alexander Barton 2012-08-16 23:51:28 +02:00
parent 0709a0f050
commit d48e440a72
1 changed files with 1 additions and 1 deletions

View File

@ -653,7 +653,7 @@ static void
Set_Defaults(bool InitServers)
{
int i;
char random[RANDOM_SALT_LEN];
char random[RANDOM_SALT_LEN + 1];
/* Global */
strcpy(Conf_ServerName, "");