mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 09:21:36 +00:00
Fix corruption in filenames in new savegame system
git-svn-id: https://svn.eduke32.com/eduke32@6572 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
9c695d6bc4
commit
2c48a359e2
1 changed files with 5 additions and 1 deletions
|
@ -63,10 +63,14 @@ typedef struct
|
||||||
|
|
||||||
struct savebrief_t
|
struct savebrief_t
|
||||||
{
|
{
|
||||||
savebrief_t() = default;
|
savebrief_t()
|
||||||
|
{
|
||||||
|
reset();
|
||||||
|
}
|
||||||
savebrief_t(char const *n)
|
savebrief_t(char const *n)
|
||||||
{
|
{
|
||||||
strncpy(name, n, MAXSAVEGAMENAME);
|
strncpy(name, n, MAXSAVEGAMENAME);
|
||||||
|
path[0] = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
char name[MAXSAVEGAMENAMESTRUCT];
|
char name[MAXSAVEGAMENAMESTRUCT];
|
||||||
|
|
Loading…
Reference in a new issue