Skip to content

Commit 0af8039

Browse files
committed
Fix crashlog not recording console log
1 parent 026be4b commit 0af8039

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sys/sys_unix.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ static qboolean Sys_CrashWrite(const void *buf, size_t len) {
893893
unsigned count = 0;
894894

895895
while (count < len) {
896-
int ret = write(crashlogfd, buf, len - count);
896+
int ret = write(crashlogfd, (const byte *)buf + count, len - count);
897897

898898
if (ret == 0) {
899899
return qfalse;
@@ -917,7 +917,7 @@ static qboolean Sys_CrashRead(void *buf, size_t len) {
917917
unsigned count = 0;
918918

919919
while (count < len) {
920-
int ret = read(crashlogfd, buf, len - count);
920+
int ret = read(crashlogfd, (byte *)buf + count, len - count);
921921

922922
if (ret == 0) {
923923
return qfalse;

0 commit comments

Comments
 (0)