Linux Hardening
 help / color / mirror / Atom feed
From: Mark Harmstone <mark@harmstone.com>
To: Brahmajit Das <listout@listout.xyz>
Cc: linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-btrfs@vger.kernel.org, clm@fb.com, josef@toxicpanda.com,
	dsterba@suse.com, kees@kernel.org, ailiop@suse.com
Subject: Re: [PATCH v2] btrfs: replace deprecated strcpy with strscpy
Date: Thu, 19 Jun 2025 19:03:27 +0100	[thread overview]
Message-ID: <fcb1bd45-f703-4df7-a3dd-f5cdae9c3983@harmstone.com> (raw)
In-Reply-To: <rbjjfbhrwh4qjfj4pjhb5zzrvyddjlekfed6kfcrtuurj2ovgg@dm6xesb7nuzm>

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.

  reply	other threads:[~2025-06-19 18:03 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-19 14:06 [PATCH] btrfs: replace deprecated strcpy with strscpy Brahmajit Das
2025-06-19 15:39 ` [PATCH v2] " Brahmajit Das
2025-06-19 17:06   ` Mark Harmstone
2025-06-19 17:59     ` Brahmajit Das
2025-06-19 18:03       ` Mark Harmstone [this message]
2025-06-20  1:43   ` [PATCH v3] " Brahmajit Das
2025-06-20  5:15     ` Mark Harmstone
2025-06-20 12:27     ` David Sterba
2025-06-19 17:03 ` [PATCH] " Mark Harmstone
2025-06-19 18:02   ` Brahmajit Das
2025-06-20 12:24     ` David Sterba

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=fcb1bd45-f703-4df7-a3dd-f5cdae9c3983@harmstone.com \
    --to=mark@harmstone.com \
    --cc=ailiop@suse.com \
    --cc=clm@fb.com \
    --cc=dsterba@suse.com \
    --cc=josef@toxicpanda.com \
    --cc=kees@kernel.org \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=linux-hardening@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=listout@listout.xyz \
    /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