noxworld-dev / opennox

OpenNox main repository.
GNU General Public License v3.0
451 stars 25 forks source link

Server name sometimes goes blank (or to a single letter or other unwanted string) #605

Open Ephreaym opened 1 year ago

Ephreaym commented 1 year ago

Happends with custom maps. I have not seen this happen with official maps.

To reproduce: load in a map and check the server name.

dennwc commented 1 year ago

From Discord:

If you host a map with a longer mapname it'll mess with the server name.

We'll need to protect from it in OpenNox. It's likely a simple strcpy again which doesn't check for the buffer length.