mirror of
https://codeberg.org/noisytoot/notnotdnethack.git
synced 2025-05-15 12:05:04 +01:00
Increase the size of the bones file name array.
No point in making it small, and it was leading to a buffer overflow due to a slightly longer name in dnh vs. vanilla
This commit is contained in:
parent
a31f89482b
commit
f5e1d8ca33
1 changed files with 3 additions and 3 deletions
|
@ -62,7 +62,7 @@ static char fqn_filename_buffer[FQN_NUMBUF][FQN_MAX_FILENAME];
|
|||
#endif
|
||||
|
||||
#if !defined(MFLOPPY) && !defined(VMS) && !defined(WIN32)
|
||||
char bones[] = "bonesnn.xxx";
|
||||
char bones[BUFSZ] = {0};
|
||||
char lock[PL_NSIZ+14] = "1lock"; /* long enough for uid+name+.99 */
|
||||
#else
|
||||
# if defined(MFLOPPY)
|
||||
|
@ -70,11 +70,11 @@ char bones[FILENAME]; /* pathname of bones files */
|
|||
char lock[FILENAME]; /* pathname of level files */
|
||||
# endif
|
||||
# if defined(VMS)
|
||||
char bones[] = "bonesnn.xxx;1";
|
||||
char bones[BUFSZ] = {0};
|
||||
char lock[PL_NSIZ+17] = "1lock"; /* long enough for _uid+name+.99;1 */
|
||||
# endif
|
||||
# if defined(WIN32)
|
||||
char bones[] = "bonesnn.xxx";
|
||||
char bones[BUFSZ] = {0};
|
||||
char lock[PL_NSIZ+25]; /* long enough for username+-+name+.99 */
|
||||
# endif
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue