[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87wmctw775.ffs@tglx>
Date: Thu, 13 Mar 2025 11:33:50 +0100
From: Thomas Gleixner <tglx@...utronix.de>
To: Thorsten Blum <thorsten.blum@...ux.dev>, John Stultz
<jstultz@...gle.com>, Stephen Boyd <sboyd@...nel.org>
Cc: linux-kernel@...r.kernel.org, Kees Cook <kees@...nel.org>, Peter
Zijlstra <peterz@...radead.org>
Subject: Re: [PATCH] clocksource: Remove unnecessary size argument when
calling strscpy()
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
Powered by blists - more mailing lists