Skip to content

Commit

Permalink
silence potential buffer overflow warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanislav Shwartsman committed Jan 22, 2025
1 parent 5d26daa commit 758028d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bochs/iodev/virt_timer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ void bx_virt_timer_c::init(void)
void bx_virt_timer_c::register_state(void)
{
unsigned i;
char name[4];
char name[12];

bx_list_c *list = new bx_list_c(SIM->get_bochs_root(), "virt_timer", "Virtual Timer State");
bx_list_c *vtimers = new bx_list_c(list, "timer");
Expand Down

0 comments on commit 758028d

Please sign in to comment.