[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YRKO4An9UkObVGmB@rric.localdomain>
Date: Tue, 10 Aug 2021 16:36:16 +0200
From: Robert Richter <rric@...nel.org>
To: Joe Perches <joe@...ches.com>
Cc: Len Baker <len.baker@....com>, Borislav Petkov <bp@...en8.de>,
Mauro Carvalho Chehab <mchehab@...nel.org>,
Tony Luck <tony.luck@...el.com>,
James Morse <james.morse@....com>,
Kees Cook <keescook@...omium.org>,
linux-hardening@...r.kernel.org, linux-edac@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3] drivers/edac/edac_mc: Remove all strcpy() uses
On 09.08.21 10:18:58, Joe Perches wrote:
> strscpy and scnprintf have different return values and it's simpler
> and much more common to use scnprintf for appended strings that are
> limited to a specific buffer length.
Calculating the bytes written from the return value is a oneliner.
-Robert
Powered by blists - more mailing lists