Skip to content

Commit

Permalink
Merge pull request #574 from oxyde42/work
Browse files Browse the repository at this point in the history
Incorrect initialization of the memory
  • Loading branch information
Egyras authored Nov 18, 2024
2 parents abf7199 + 318a191 commit 4e3e639
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions HeishaMon/rules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -575,8 +575,8 @@ static int8_t vm_value_set(struct rules_t *obj) {
}
}

memset(&cmd, 256, 0);
memset(&log_msg, 256, 0);
memset(&cmd, 0, sizeof(cmd));
memset(&log_msg, 0, sizeof(log_msg));

if(heishamonSettings.optionalPCB) {
//optional commands
Expand Down

0 comments on commit 4e3e639

Please sign in to comment.