[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <fcb1bd45-f703-4df7-a3dd-f5cdae9c3983@harmstone.com>
Date: Thu, 19 Jun 2025 19:03:27 +0100
From: Mark Harmstone <mark@...mstone.com>
To: Brahmajit Das <listout@...tout.xyz>
Cc: linux-hardening@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-btrfs@...r.kernel.org, clm@...com, josef@...icpanda.com,
dsterba@...e.com, kees@...nel.org, ailiop@...e.com
Subject: Re: [PATCH v2] btrfs: replace deprecated strcpy with strscpy
On 19/06/2025 6.59 pm, Brahmajit Das wrote:
> On 19.06.2025 18:06, Mark Harmstone wrote:
>> On 19/06/2025 4.39 pm, Brahmajit Das wrote:
> ...
>>
>> Surely this doesn't compile... strscpy takes three parameters.
>>
> It does, the third parameter is optional. From include/linux/string.h
>
> #define strscpy(dst, src, ...) \
> CONCATENATE(__strscpy, COUNT_ARGS(__VA_ARGS__))(dst, src, __VA_ARGS__)
>
> But I'm more than happy to add the third parameter.
Okay. It looks like this was added by e6584c3964f2ff76a9fb5a701e4a59997b35e547 in
2023 - the docs don't seem to have caught up yet.
Powered by blists - more mailing lists