Fix getpath() not to crash when path exceeds MAX_PATH_LEN
authorMarkus Armbruster <armbru@pond.sub.org>
Thu, 14 Jan 2010 21:39:42 +0000 (22:39 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 19 Jan 2010 07:40:17 +0000 (08:40 +0100)
commitad80846283023d319d3a1c2c4d193a42c7690d1f
tree673403a5a9cdf1e9024dec7e4d8c79f2d1ead66f
parent9b62b354244b685fb892c7b13165303873e97381
Fix getpath() not to crash when path exceeds MAX_PATH_LEN

Trivial for players to trigger.  Broken in commit 0b0612ea, v4.3.16.
Spotted by the Clang Static Analyzer.
src/lib/subs/paths.c