]> 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)
committerRudolf Polzer <divverent@xonotic.org>
Sat, 29 Jun 2013 11:22:00 +0000 (13:22 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11963 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=7ede7d55a54dcc911d129f63955fe28550c6c694

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");