From: divverent Date: Sat, 29 Jun 2013 11:21:01 +0000 (+0000) Subject: oops... fix nul termination. luckily not exploitable. X-Git-Tag: xonotic-v0.8.0~175 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4576cbd2790ce45788e128ae6a06676e5f3f03d6;p=xonotic%2Fdarkplaces.git oops... fix nul termination. luckily not exploitable. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11963 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=7ede7d55a54dcc911d129f63955fe28550c6c694 --- diff --git a/crypto.c b/crypto.c index cf7cc5f2..a681379c 100644 --- 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");