[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1e2cfefb-c4dd-4611-867a-2b2e9e5f7467@gmail.com>
Date: Thu, 12 Oct 2023 16:17:11 +0700
From: Bagas Sanjaya <bagasdotme@...il.com>
To: Calvince Otieno <calvncce@...il.com>, outreachy@...ts.linux.dev,
linux-kernel@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Dan Carpenter <error27@...il.com>,
Archana <craechal@...il.com>, Simon Horman <horms@...nel.org>,
linux-staging@...ts.linux.dev
Subject: Re: [PATCH] staging/wlan-ng: remove strcpy() use in favor of
strscpy()
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
Powered by blists - more mailing lists