[ioquake3] 26/33: Fix reading crash log when log wraps around buffer

Simon McVittie smcv at debian.org
Mon Oct 30 14:00:28 UTC 2017


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch debian/master
in repository ioquake3.

commit b4a4fe98d4b8fad7e477b78217972384225dfbe9
Author: Zack Middleton <zack at cloemail.com>
Date:   Sun Oct 8 07:07:53 2017 -0500

    Fix reading crash log when log wraps around buffer
---
 code/sys/con_log.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/code/sys/con_log.c b/code/sys/con_log.c
index c3a4a5b..bc1c5ae 100644
--- a/code/sys/con_log.c
+++ b/code/sys/con_log.c
@@ -121,7 +121,7 @@ unsigned int CON_LogRead( char *out, unsigned int outSize )
 	}
 
 	Com_Memcpy( out, consoleLog + readPos, firstChunk );
-	Com_Memcpy( out + firstChunk, out, secondChunk );
+	Com_Memcpy( out + firstChunk, consoleLog, secondChunk );
 
 	readPos = ( readPos + outSize ) % MAX_LOG;
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/ioquake3.git



More information about the Pkg-games-commits mailing list