Re: [PATCH] media: siano: Replace strlcat() with snprintf() in sms_ir_init()

From: Shihuang Liu

Date: Wed Nov 04 2026 - 11:37:05 EST


On Wed, Nov 04, 2026 at 01:02:39AM -0800, Mariia Nikitash wrote:
> In preparation for removing the deprecated strlcat() API[1],
> replace the strscpy() and strlcat() calls with a single snprintf()
> call to construct the IR device path.
>
> Both the source and destination buffers have the same capacity,
> and the return values are unused. This preserves the resulting
> string, including truncation behavior.
>
> Link: https://github.com/KSPP/linux/issues/370 [1]
> Signed-off-by: Mariia Nikitash <nikitash.mariiaw@xxxxxxxxx>

Reviewed-by: Shihuang Liu <shlomojune6@xxxxxxxxx>