From: divverent Date: Thu, 25 Nov 2010 20:30:49 +0000 (+0000) Subject: fix two typos X-Git-Tag: xonotic-v0.5.0~438^2~206 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e887a86e471c01a55d43021910db623966e7d252;p=xonotic%2Fdarkplaces.git fix two typos git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10635 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/prvm_cmds.c b/prvm_cmds.c index 4fe665f5..f5f2c675 100644 --- a/prvm_cmds.c +++ b/prvm_cmds.c @@ -5872,7 +5872,7 @@ void VM_uri_get (void) if(prog->argc >= 5) poststringbuffer = PRVM_G_FLOAT(OFS_PARM4); if(prog->argc >= 6) - postkeyid = PRVM_G_FLOAT(OFS_PARM4); + postkeyid = PRVM_G_FLOAT(OFS_PARM5); handle = (uri_to_prog_t *) Z_Malloc(sizeof(*handle)); // this can't be the prog's mem pool, as curl may call the callback later! handle->prognr = PRVM_GetProgNr(); @@ -5930,7 +5930,7 @@ void VM_uri_get (void) { size_t ll; handle->sigdata = (char *)Z_Malloc(8192); - strlcpy(handle->sigdata, "X-D0-Blind-ID-Detached-Signature: ", sizeof(handle->sigdata)); + strlcpy(handle->sigdata, "X-D0-Blind-ID-Detached-Signature: ", 8192); l = strlen(handle->sigdata); handle->siglen = Crypto_SignDataDetached(handle->postdata, handle->postlen, postkeyid, handle->sigdata + l, 8192 - l); if(!handle->siglen)