Fix buffer overread at startup
Commit5b7fb9c402
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:
parent
16698137ea
commit
f47bcb5cbc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue