From 95ac520eed2ea04098a76305fd0ad7e9158840b7 Mon Sep 17 00:00:00 2001 From: Marcin Kozlowski Date: Thu, 10 Sep 2020 09:58:28 +0200 Subject: [PATCH] Remove compilation warnings -Werror=stringop-truncation (#515) --- naxsi_src/naxsi_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/naxsi_src/naxsi_utils.c b/naxsi_src/naxsi_utils.c index 78e4827a..54634dea 100644 --- a/naxsi_src/naxsi_utils.c +++ b/naxsi_src/naxsi_utils.c @@ -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); } } }