Skip to content

Commit

Permalink
Fix another uninitialized board name bug
Browse files Browse the repository at this point in the history
  • Loading branch information
AliceLR committed Oct 10, 2020
1 parent 13841f5 commit 67c9879
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/editor/window.c
Expand Up @@ -1125,7 +1125,7 @@ int add_board(struct world *mzx_world, int current)
{
struct board *new_board;
char name[BOARD_NAME_SIZE];
name[0] = 0;
memset(name, 0, BOARD_NAME_SIZE);

if(input_window(mzx_world, "Name for new board:", name, BOARD_NAME_SIZE - 1))
return -1;
Expand Down

0 comments on commit 67c9879

Please sign in to comment.