Fix missing null-terminator when writing demos
This commit is contained in:
parent
fae43b8120
commit
222fbfcf7c
1 changed files with 1 additions and 1 deletions
|
|
@ -2617,7 +2617,7 @@ void G_BeginRecording (const char *startmap)
|
|||
WriteInt8((uint8_t)i, &demo_p);
|
||||
auto str = D_GetUserInfoStrings(i);
|
||||
memcpy(demo_p, str.GetChars(), str.Len() + 1);
|
||||
demo_p += str.Len();
|
||||
demo_p += str.Len() + 1;
|
||||
FinishChunk(&demo_p);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue