ddnet / ddnet

DDraceNetwork, a free cooperative platformer game
https://ddnet.org
Other
510 stars 381 forks source link

Fix size of chat history entry allocation #8343

Closed Robyt3 closed 3 weeks ago

Robyt3 commented 3 weeks ago

The -1 in the size calculation for the ringbuffer allocation of chat history entries was incorrect, so the entries potentially didn't fit the zero terminator. Because mem_copy was used, the string was also not zero terminated explicitly.

Checklist