lkml.org 
[lkml]   [2024]   [Feb]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/7] scsi: mpi3mr: replace deprecated strncpy with strscpy

On Fri, 23 Feb 2024, Justin Stitt wrote:

> Really, there's no bug with the current code.

If (hypothetically) you needed to reduce stack size, just copy the char
pointer instead of copying the chars onto the stack.

If (hypothetically) strncpy() was banned altogether (rather than merely
deprecated) I would do the same -- but I'm not the maintainer.

\
 
 \ /
  Last update: 2024-05-27 15:19    [W:0.095 / U:0.392 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site