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 50cd319 commit 5d26daa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bochs/pc_system.cc
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ void bx_pc_system_c::register_state(void)

bx_list_c *timers = new bx_list_c(list, "timer");
for (unsigned i = 0; i < numTimers; i++) {
char name[4];
char name[12];
sprintf(name, "%u", i);
bx_list_c *bxtimer = new bx_list_c(timers, name);
BXRS_PARAM_BOOL(bxtimer, inUse, timer[i].inUse);
Expand Down

0 comments on commit 5d26daa

Please sign in to comment.