[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.22.394.2310300735480.3533@hadrien>
Date: Mon, 30 Oct 2023 07:36:52 +0100 (CET)
From: Julia Lawall <julia.lawall@...ia.fr>
To: Nancy Nyambura <nicymimz@...il.com>
cc: nicydaniels@...il.com, outreachy@...ts.linux.dev,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
linux-staging@...ts.linux.dev, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] staging: rts5208: Replace strncpy() with strscpy() for
appropriate string copying in rtsx_scsi line 524 warning: found by checkpatch.pl
script
It looks like the entire log message ended up in the subject line. The
subject line should give a concise summary of what is done. The log
message should give more detail about what you are doing and why.
julia
On Sun, 29 Oct 2023, Nancy Nyambura wrote:
> Signed-off-by: Nancy Nyambura <nicymimz@...il.com>
> ---
> drivers/staging/rts5208/rtsx_scsi.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/staging/rts5208/rtsx_scsi.c b/drivers/staging/rts5208/rtsx_scsi.c
> index 08bd768ad34d..52324b8ebbc7 100644
> --- a/drivers/staging/rts5208/rtsx_scsi.c
> +++ b/drivers/staging/rts5208/rtsx_scsi.c
> @@ -523,7 +523,7 @@ static int inquiry(struct scsi_cmnd *srb, struct rtsx_chip *chip)
>
> if (sendbytes > 8) {
> memcpy(buf, inquiry_buf, 8);
> - strncpy(buf + 8, inquiry_string, sendbytes - 8);
> + strscpy(buf + 8, inquiry_string, sendbytes - 8);
> if (pro_formatter_flag) {
> /* Additional Length */
> buf[4] = 0x33;
> --
> 2.40.1
>
>
>
Powered by blists - more mailing lists