laamaa / m8c

Cross-platform M8 tracker headless client
Other
380 stars 81 forks source link

Use `snprintf` instead of `sprintf` in config.c to avoid zero-termination / buffer overflow problems #73

Closed laamaa closed 2 years ago

laamaa commented 2 years ago

Using snprintf instead of sprintf could help to avoid zero-termination / buffer overflow problems.

_Originally posted by @ferrix in https://github.com/laamaa/m8c/pull/72#discussion_r886519401_