Re: [PATCH] tools: hv: Fix a complier warning in the fcopy uio daemon
From: Wei Liu
Date: Sat Dec 07 2024 - 02:45:59 EST
On Tue, Sep 10, 2024 at 12:44:32AM +0000, Dexuan Cui wrote:
> hv_fcopy_uio_daemon.c:436:53: warning: '%s' directive output may be truncated
> writing up to 14 bytes into a region of size 10 [-Wformat-truncation=]
> 436 | snprintf(uio_dev_path, sizeof(uio_dev_path), "/dev/%s", uio_name);
>
> Also added 'static' for the array 'desc[]'.
>
> Fixes: 82b0945ce2c2 ("tools: hv: Add new fcopy application based on uio driver")
> Cc: stable@xxxxxxxxxxxxxxx # 6.10+
> Signed-off-by: Dexuan Cui <decui@xxxxxxxxxxxxx>
Applied to hyperv-fixes. Thanks.