Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
Remove compilation warnings -Werror=stringop-truncation (#515)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinguy authored Sep 10, 2020
1 parent 4ea2af9 commit 95ac520
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion naxsi_src/naxsi_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ ngx_http_wlr_finalize_hashtables(ngx_conf_t *cf, ngx_http_dummy_loc_conf_t *dlc
{
size_t fname_size = strlen((char *)dlc->whitelist_file->data);
if(fname_size <= 1024) {
strncpy(fname, (char *)dlc->whitelist_file->data, strlen((char *)dlc->whitelist_file->data));
strcpy(fname, (char *)dlc->whitelist_file->data);
}
}
}
Expand Down

0 comments on commit 95ac520

Please # to comment.