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:
parent
e46e9e48ea
commit
bc19d31dc3
1 changed files with 1 additions and 1 deletions
|
@ -369,7 +369,7 @@ void SV_MVD_RunPendingConnections(void)
|
||||||
QCRC_Init(&ushort_result);
|
QCRC_Init(&ushort_result);
|
||||||
QCRC_AddBlock(&ushort_result, p->challenge, strlen(p->challenge));
|
QCRC_AddBlock(&ushort_result, p->challenge, strlen(p->challenge));
|
||||||
QCRC_AddBlock(&ushort_result, qtv_password.string, strlen(qtv_password.string));
|
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;
|
break;
|
||||||
case QTVAM_MD4:
|
case QTVAM_MD4:
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue