]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix two typos
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 25 Nov 2010 20:30:49 +0000 (20:30 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 25 Nov 2010 20:30:49 +0000 (20:30 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10635 d7cf8633-e32d-0410-b094-e92efae38249

prvm_cmds.c

index 4fe665f5816f40ae479f3e6921a62a45ef8541f3..f5f2c6752c8f5eeb163e1f20608e2bfda3fc9341 100644 (file)
@@ -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)