Fix buffer overread at startup

Commit 5b7fb9c402 incorrectly removed the trailing null from
`g_descent_version`.  Add an explicit null, since list initialization
does not imply a null.

Fixes: 5b7fb9c402 ("Reduce use of quotes for passing vers_id defines")
This commit is contained in:
Kp 2022-10-19 01:17:33 +00:00
parent 16698137ea
commit f47bcb5cbc
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@
#endif
// "D1X-Rebirth " or "D2X-Rebirth "
constexpr char g_descent_version[] = {'D', DXX_NAME_NUMBER, 'X', '-', 'R', 'e', 'b', 'i', 'r', 't', 'h', ' ', DESCENT_VERSION_EXTRA};
constexpr char g_descent_version[]{'D', DXX_NAME_NUMBER, 'X', '-', 'R', 'e', 'b', 'i', 'r', 't', 'h', ' ', DESCENT_VERSION_EXTRA, 0};
constexpr char g_descent_build_datetime[21] = DXX_VERSID_BUILD_DATE " " DXX_VERSID_BUILD_TIME;
#ifdef DXX_RBE