1
0
Fork 0
forked from fte/fteqw

Paranoia.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2009 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2006-02-22 23:47:08 +00:00
parent 0a326e1bc8
commit 12c3b6b96e

View file

@ -2671,7 +2671,7 @@ void COM_Gamedir (char *dir)
{
searchpath_t *next;
if (strstr(dir, "..") || strstr(dir, "/")
if (!*dir || strstr(dir, "..") || strstr(dir, "/")
|| strstr(dir, "\\") || strstr(dir, ":") )
{
Con_TPrintf (TL_GAMEDIRAINTPATH);