empserver/src
Markus Armbruster e312e4f8d6 bomb launch interdiction: Fix crash on bombs missing target
plane damage() prints @noisy with snprintf() even when it's null.  It
doesn't actually use the output then.  Some systems (GNU, Windows)
deal gracefully with printing null strings, others crash.  @noisy is
null when bombers or missiles miss and do collateral damage.  Affects
bomb, launch, and interdiction missions.  Broken in commit 820d755e5
"subs: Change pln_damage()'s parameter noisy to string prefix",
v4.3.33.

Fix by guarding the snprintf().

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2021-01-17 21:24:28 +01:00
..
client Fix build for systems that don't provide POSIX.1-2001 by default 2021-01-17 21:24:28 +01:00
lib bomb launch interdiction: Fix crash on bombs missing target 2021-01-17 21:24:28 +01:00
scripts Update copyright notice 2021-01-05 10:41:28 +01:00
server New macro ARRAY_SIZE() 2021-01-17 21:24:28 +01:00
util fairland: Tidy up comments 2021-01-17 21:24:28 +01:00