mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-18 02:50:33 +00:00
engine: common: fix array underrun
This commit is contained in:
parent
924e895753
commit
843c9abf9b
@ -1008,7 +1008,7 @@ void Host_InitCommon( int argc, char **argv, const char *progname, qboolean bCha
|
|||||||
|
|
||||||
len = Q_strlen( host.rootdir );
|
len = Q_strlen( host.rootdir );
|
||||||
|
|
||||||
if( host.rootdir[len - 1] == '/' )
|
if( len && host.rootdir[len - 1] == '/' )
|
||||||
host.rootdir[len - 1] = 0;
|
host.rootdir[len - 1] = 0;
|
||||||
|
|
||||||
// get readonly root. The order is: check for arg, then env.
|
// get readonly root. The order is: check for arg, then env.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user