mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-10 23:02:01 +00:00
Fix reading crash log when log wraps around buffer
This commit is contained in:
parent
9e502bda4d
commit
b4a4fe98d4
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ unsigned int CON_LogRead( char *out, unsigned int outSize )
|
||||||
}
|
}
|
||||||
|
|
||||||
Com_Memcpy( out, consoleLog + readPos, firstChunk );
|
Com_Memcpy( out, consoleLog + readPos, firstChunk );
|
||||||
Com_Memcpy( out + firstChunk, out, secondChunk );
|
Com_Memcpy( out + firstChunk, consoleLog, secondChunk );
|
||||||
|
|
||||||
readPos = ( readPos + outSize ) % MAX_LOG;
|
readPos = ( readPos + outSize ) % MAX_LOG;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue