Browse Source

engine: common: fix array underrun

pull/2/head
Alibek Omarov 2 years ago
parent
commit
843c9abf9b
  1. 2
      engine/common/host.c

2
engine/common/host.c

@ -1008,7 +1008,7 @@ void Host_InitCommon( int argc, char **argv, const char *progname, qboolean bCha @@ -1008,7 +1008,7 @@ void Host_InitCommon( int argc, char **argv, const char *progname, qboolean bCha
len = Q_strlen( host.rootdir );
if( host.rootdir[len - 1] == '/' )
if( len && host.rootdir[len - 1] == '/' )
host.rootdir[len - 1] = 0;
// get readonly root. The order is: check for arg, then env.

Loading…
Cancel
Save