From: Thomas Gleixner <tglx@linutronix.de>
To: Thorsten Blum <thorsten.blum@linux.dev>,
John Stultz <jstultz@google.com>, Stephen Boyd <sboyd@kernel.org>
Cc: linux-kernel@vger.kernel.org, Kees Cook <kees@kernel.org>,
Peter Zijlstra <peterz@infradead.org>
Subject: Re: [PATCH] clocksource: Remove unnecessary size argument when calling strscpy()
Date: Thu, 13 Mar 2025 11:33:50 +0100 [thread overview]
Message-ID: <87wmctw775.ffs@tglx> (raw)
In-Reply-To: <20250311110624.495718-2-thorsten.blum@linux.dev>
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
next prev parent reply other threads:[~2025-03-13 10:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-11 11:06 [PATCH] clocksource: Remove unnecessary size argument when calling strscpy() Thorsten Blum
2025-03-13 10:33 ` Thomas Gleixner [this message]
2025-03-13 10:52 ` [tip: timers/core] clocksource: Remove unnecessary strscpy() size argument tip-bot2 for Thorsten Blum
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wmctw775.ffs@tglx \
--to=tglx@linutronix.de \
--cc=jstultz@google.com \
--cc=kees@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=peterz@infradead.org \
--cc=sboyd@kernel.org \
--cc=thorsten.blum@linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox