Hi,
> -Original Message-
> From: Thomas Monjalon [mailto:tho...@monjalon.net]
> Sent: Sunday, May 13, 2018 18:07
> To: De Lara Guarch, Pablo
> Cc: dev@dpdk.org; Xu, Rosen
> Subject: Re: [dpdk-dev] [PATCH] bus/fpga: use strlcpy instead of strncpy
>
> 12/05/2
12/05/2018 09:02, Pablo de Lara:
> Gcc 8 reports a build error:
>
> drivers/bus/ifpga/ifpga_bus.c:161:2: error: ‘strncpy’ specified
> bound 256 equals destination size [-Werror=stringop-truncation]
> strncpy(afu_pr_conf.bs_path, path, sizeof(afu_pr_conf.bs_path));
> ^~~
Gcc 8 reports a build error:
drivers/bus/ifpga/ifpga_bus.c:161:2: error: ‘strncpy’ specified
bound 256 equals destination size [-Werror=stringop-truncation]
strncpy(afu_pr_conf.bs_path, path, sizeof(afu_pr_conf.bs_path));
^~~
Fixes:
3 matches
Mail list logo