mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-21 10:57:15 -04:00
fix demo name buffer size for "-00000" case
+1 bytw for '/0'
This commit is contained in:
parent
075b47ed75
commit
aee6da51f4
@ -3986,7 +3986,7 @@ void G_RecordDemo(const char *name)
|
||||
free(demoname);
|
||||
}
|
||||
demoname = AddDefaultExtension(name, ".lmp"); // 1/18/98 killough
|
||||
demoname_size = strlen(demoname) + 6; // [crispy] + 6 for "-00000"
|
||||
demoname_size = strlen(demoname) + 1 + 6; // [crispy] + 6 for "-00000"
|
||||
demoname = I_Realloc(demoname, demoname_size);
|
||||
|
||||
for(; j <= 99999 && !M_access(demoname, F_OK); ++j)
|
||||
|
Loading…
x
Reference in New Issue
Block a user