SCP: Properly define sim_name array to avoid potential overrun
This commit is contained in:
parent
62dc8ff6ec
commit
a9a91420b0
4 changed files with 5 additions and 5 deletions
|
@ -29,7 +29,7 @@
|
|||
|
||||
#include "vax_defs.h"
|
||||
|
||||
char sim_name[32] = "MicroVAX I (KA610)";
|
||||
char sim_name[] = "MicroVAX I (KA610)";
|
||||
|
||||
void vax_init(void)
|
||||
{
|
||||
|
|
|
@ -30,14 +30,14 @@
|
|||
#include "vax_defs.h"
|
||||
|
||||
#if defined(VAX_620)
|
||||
char sim_name[32] = "rtVAX1000 (KA620)";
|
||||
char sim_name[] = "rtVAX1000 (KA620)";
|
||||
|
||||
void vax_init(void)
|
||||
{
|
||||
sim_savename = "rtVAX1000 (KA620)";
|
||||
}
|
||||
#else
|
||||
char sim_name[32] = "MicroVAX II (KA630)";
|
||||
char sim_name[] = "MicroVAX II (KA630)";
|
||||
|
||||
void vax_init(void)
|
||||
{
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
#include "vax_defs.h"
|
||||
|
||||
char sim_name[64] = "MicroVAX 3900";
|
||||
char sim_name[] = "MicroVAX 3900";
|
||||
|
||||
void vax_init(void)
|
||||
{
|
||||
|
|
2
scp.h
2
scp.h
|
@ -307,7 +307,7 @@ void sim_aio_activate (ACTIVATE_API caller, UNIT *uptr, int32 event_time);
|
|||
|
||||
/* VM interface */
|
||||
|
||||
extern char sim_name[];
|
||||
extern char sim_name[64];
|
||||
extern DEVICE *sim_devices[];
|
||||
extern REG *sim_PC;
|
||||
extern const char *sim_stop_messages[SCPE_BASE];
|
||||
|
|
Loading…
Add table
Reference in a new issue