Re: [PATCH] clocksource: Remove unnecessary size argument when calling strscpy()

From: Thomas Gleixner
Date: Thu Mar 13 2025 - 06:34:04 EST


On Tue, Mar 11 2025 at 12:06, Thorsten Blum wrote:

> The size parameter is optional and strscpy() automatically determines
> the length of the destination buffer using sizeof() if the argument is
> omitted.

If, and _only_ if the destination argument is a fixed length array.

That's the case here, but without that distinction the above sentence is
misleading at best.

Thanks,

tglx