]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
oops... fix nul termination. luckily not exploitable.
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 29 Jun 2013 11:21:01 +0000 (11:21 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 29 Jun 2013 11:21:01 +0000 (11:21 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11963 d7cf8633-e32d-0410-b094-e92efae38249

crypto.c

index cf7cc5f2f1a959b151f4cb3c63b09ec4826f90eb..a681379c8ee1650f0dfb74c895969250e9ccde3d 100644 (file)
--- a/crypto.c
+++ b/crypto.c
@@ -1306,7 +1306,7 @@ static void Crypto_KeyGen_f(void)
                return;
        }
        buf2l += buf2pos;
-       buf[buf2l] = 0;
+       buf2[buf2l] = 0;
        if(!Curl_Begin_ToMemory(buf2, 0, (unsigned char *) keygen_buf, sizeof(keygen_buf), Crypto_KeyGen_Finished, NULL))
        {
                Con_Printf("curl failed\n");