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

From: Nicolas Dufresne

Date: Fri Dec 12 2025 - 08:51:38 EST


Hi,

Le vendredi 12 décembre 2025 à 12:11 +0800, Zhentao Guo a écrit :
> > 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.

Nicolas

Attachment: signature.asc
Description: This is a digitally signed message part