drm: bridge/dw-hdmi-ahb-audio: use strscpy() is more robust and safer
authorMinghao Chi <chi.minghao@zte.com.cn>
Mon, 19 Sep 2022 03:04:01 +0000 (03:04 +0000)
committerNeil Armstrong <neil.armstrong@linaro.org>
Tue, 20 Sep 2022 08:59:13 +0000 (08:59 +0000)
commit110ae8a21bbe779a133c1672a1463105c9d50590
tree0b280077df340409debf6785a26ee001844beb36
parentd6cbe630f3e9a5b11ba4082ff980ccc094224610
drm: bridge/dw-hdmi-ahb-audio: use strscpy() is more robust and safer

The implementation of strscpy() is more robust and safer.

That's now the recommended way to copy NUL terminated strings.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220919030401.211331-1-chi.minghao@zte.com.cn
drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c