From 7ede7d55a54dcc911d129f63955fe28550c6c694 Mon Sep 17 00:00:00 2001 From: divverent Date: Sat, 29 Jun 2013 11:21:01 +0000 Subject: [PATCH] oops... fix nul termination. luckily not exploitable. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11963 d7cf8633-e32d-0410-b094-e92efae38249 --- crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- 2.39.2