From: Bagas Sanjaya <bagasdotme@gmail.com>
To: Calvince Otieno <calvncce@gmail.com>,
outreachy@lists.linux.dev, linux-kernel@vger.kernel.org
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Dan Carpenter <error27@gmail.com>, Archana <craechal@gmail.com>,
Simon Horman <horms@kernel.org>,
linux-staging@lists.linux.dev
Subject: Re: [PATCH] staging/wlan-ng: remove strcpy() use in favor of strscpy()
Date: Thu, 12 Oct 2023 16:17:11 +0700 [thread overview]
Message-ID: <1e2cfefb-c4dd-4611-867a-2b2e9e5f7467@gmail.com> (raw)
In-Reply-To: <ZSeD1UojAgrsOh16@lab-ubuntu>
On 12/10/2023 12:27, Calvince Otieno wrote:
> if (j == -1) { /* plug the filename */
> memset(dest, 0, s3plug[i].len);
> - strncpy(dest, PRISM2_USB_FWFILE, s3plug[i].len - 1);
> + strscpy(dest, PRISM2_USB_FWFILE, s3plug[i].len - 1);
Is this strscpy() behavior same as previous strncpy()?
--
An old man doll... just what I always wanted! - Clara
next prev parent reply other threads:[~2023-10-12 9:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-12 5:27 [PATCH] staging/wlan-ng: remove strcpy() use in favor of strscpy() Calvince Otieno
2023-10-12 9:17 ` Bagas Sanjaya [this message]
2023-10-12 9:57 ` Calvince Otieno
2023-10-12 10:03 ` Dan Carpenter
2023-10-12 10:15 ` Dan Carpenter
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=1e2cfefb-c4dd-4611-867a-2b2e9e5f7467@gmail.com \
--to=bagasdotme@gmail.com \
--cc=calvncce@gmail.com \
--cc=craechal@gmail.com \
--cc=error27@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=horms@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=outreachy@lists.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