Fix buffer overrun in shell emulator (#51)

This commit is contained in:
James Stanley 2019-10-16 01:21:40 +00:00 committed by Virgil Dupras
parent 8926c33ab1
commit 7f7251d57f

View File

@ -40,7 +40,7 @@
#define FS_ADDR_PORT 0x02 #define FS_ADDR_PORT 0x02
static Z80Context cpu; static Z80Context cpu;
static uint8_t mem[0xffff] = {0}; static uint8_t mem[0x10000] = {0};
static uint8_t fsdev[MAX_FSDEV_SIZE] = {0}; static uint8_t fsdev[MAX_FSDEV_SIZE] = {0};
static uint32_t fsdev_size = 0; static uint32_t fsdev_size = 0;
static uint32_t fsdev_ptr = 0; static uint32_t fsdev_ptr = 0;