25/02/2026 18:36, Kevin Traynor:
> Without libbsd-devel strlcpy is defined as rte_strlcpy and a warning is
> raised for format-truncation. Observed with gcc 15.2.1.
> 
> In function ‘rte_strlcpy’,
>     inlined from ‘add_host_channels’ at
> ../examples/vm_power_manager/channel_manager.c:600:3:
> ../lib/eal/include/rte_string_fns.h:63:24:
> warning: ‘%s’ directive output may be truncated writing up to
> 4095 bytes into a region of size 108 [-Wformat-truncation=]
> 63 |         return (size_t)snprintf(dst, size, "%s", src);
>    |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> Check for truncation of socket_path[4096] into channel_path[108] to
> remove warning.
> 
> Cc: [email protected]
> 
> Signed-off-by: Kevin Traynor <[email protected]>

Applied, thanks.



Reply via email to