HerculesWS / Hercules

Hercules is a collaborative software development project revolving around the creation of a robust massively multiplayer online role playing game (MMORPG) server package. Written in C, the program is very versatile and provides NPCs, warps and modifications. The project is jointly managed by a group of volunteers located around the world as well as a tremendous community providing QA and support. Hercules is a continuation of the original Athena project.
http://herc.ws
GNU General Public License v3.0
904 stars 757 forks source link

Fix some printf overflow warnings #3212

Closed guilherme-gm closed 1 year ago

guilherme-gm commented 1 year ago

Pull Request Prelude

Changes Proposed

Simply replace some sprintf with snprintf, keeping their destination array size. This removes a few warnings about possible overflows (which never happens in default configs).

Issues addressed: None, I think