Skip to content

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 and wargio committed Mar 5, 2022
1 parent d949ea9 commit d0a1b9c
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 @@ -687,7 +687,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 d0a1b9c

Please sign in to comment.