Skip to content

Commit

Permalink
Fix zero-initialization of network masks
Browse files Browse the repository at this point in the history
  • Loading branch information
SimulPiscator committed Oct 21, 2023
1 parent 8a0f4db commit 1d3529e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/accessfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ namespace {
if (!data)
return false;

::memset(data, width / 8, 0);
::memset(data, 0, width / 8);
for (int i = 0; i < bits; ++i) {
int byte = i / 8, bit = i % 8;
data[byte] |= (1 << bit);
Expand Down

0 comments on commit 1d3529e

Please sign in to comment.