Re: [PATCH v3] drivers/edac/edac_mc: Remove all strcpy() uses
From: Robert Richter <rric@kernel.org>
Date: 2021-08-10 14:36:25
Also in:
linux-hardening, lkml
From: Robert Richter <rric@kernel.org>
Date: 2021-08-10 14:36:25
Also in:
linux-hardening, lkml
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