Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix savestates. Still don't understand quite how this broke though, i…
…t should work. Fixes #9365
- Loading branch information
Showing
1 changed file
with
7 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
marker
is not always being truncated here (bystrncpy
.) It's just a fixed-length string.Example:
1234567890abcdef
will get truncated to1234567890abcde\0
bytruncate_cpy
, but not bystrncpy
. It's always comparing by exact length, so the null terminator isn't needed... I'm not confident this was intentional originally (darn confusingstrncpy
), but this is the reason it broke.For the other two (
GitVersion
andtitle
), I thinktruncate_cpy
is more correct, as they are being null terminated always.-[Unknown]