+29
−0
Loading
Without the change `zsnesn` startup crashes with:
$ gdb zsnes
*** buffer overflow detected ***: terminated
...
#7 0x08057c14 in memset (__len=2, __ch=255, __dest=<optimized out>) at
...-glibc-2.38-23-dev/include/bits/string_fortified.h:59