Skip to content
Snippets Groups Projects
Unverified Commit b16c4df3 authored by Re Frag's avatar Re Frag
Browse files

Ensure the servername fits into MAXSERVERNAME before setting it

This commit adds a verification before setting the servername console
variable. We now check that it fits within the MAXSERVERNAME length and
we cancel setting it if it doesn't.
Letting the servername be more than MAXSERVERNAME could lead to crashes
when trying to edit the server name from the menu so, we now avoid
those.
parent 68264e72
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment