Should give more accurate results.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2107 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
8f496bef67
commit
629834c8a6
1 changed files with 7 additions and 1 deletions
|
@ -1882,14 +1882,20 @@ const char *COM_ParseToken (const char *data, const char *punctuation)
|
|||
com_token[0] = 0;
|
||||
|
||||
if (!data)
|
||||
{
|
||||
com_tokentype = TTP_UNKNOWN;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// skip whitespace
|
||||
skipwhite:
|
||||
while ( (c = *data) <= ' ')
|
||||
while ( (c = *(unsigned char*)data) <= ' ')
|
||||
{
|
||||
if (c == 0)
|
||||
{
|
||||
com_tokentype = TTP_UNKNOWN;
|
||||
return NULL; // end of file;
|
||||
}
|
||||
data++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue