Re: [PATCH RFC v2 2/3] decoder: Add V4L2 stateless H.264 decoder driver
From: Zhentao Guo
Date: Sun Dec 14 2025 - 21:16:05 EST
在 2025/12/12 21:51, Nicolas Dufresne 写道:
Hi,Yes, we use strscpy() for copying all the strings.
Le vendredi 12 décembre 2025 à 12:11 +0800, Zhentao Guo a écrit :
I have to correct myself, I meant to suggest strscpy(dst, src, size). Passingstrcpy() would be the preferred helper for this, no need to fill the leadingOk, it should be more suitable to use strcpy.
zero liek this, see include/linux/string.h
the size for safety seems important, and unlike strncpy() it takes care of the
leading zero.
Nicolas
Thanks
Zhentao