1
0
Fork 0
forked from fte/fteqw

Some implementations ignore 0x prefixes in atoi

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2783 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2007-11-09 21:21:21 +00:00
parent e46e9e48ea
commit bc19d31dc3

View file

@ -369,7 +369,7 @@ void SV_MVD_RunPendingConnections(void)
QCRC_Init(&ushort_result);
QCRC_AddBlock(&ushort_result, p->challenge, strlen(p->challenge));
QCRC_AddBlock(&ushort_result, qtv_password.string, strlen(qtv_password.string));
p->hasauthed = (ushort_result == atoi(password));
p->hasauthed = (ushort_result == strtoul(password, NULL, 0));
break;
case QTVAM_MD4:
{