Thread (5 messages) 5 messages, 2 authors, 2025-12-16

Re: [PATCH RFC v2 2/3] decoder: Add V4L2 stateless H.264 decoder driver

From: Zhentao Guo <hidden>
Date: 2025-12-15 02:16:05
Also in: linux-amlogic, linux-devicetree, linux-media, lkml

在 2025/12/12 21:51, Nicolas Dufresne 写道:
Hi,

Le vendredi 12 décembre 2025 à 12:11 +0800, Zhentao Guo a écrit :
quoted
quoted
strcpy() would be the preferred helper for this, no need to fill the leading
zero liek this, see include/linux/string.h
Ok, it should be more suitable to use strcpy.
I have to correct myself, I meant to suggest strscpy(dst, src, size). Passing
the size for safety seems important, and unlike strncpy() it takes care of the
leading zero.
Yes, we use strscpy() for copying all the strings.
Nicolas
Thanks

Zhentao

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help