lkml.org 
[lkml]   [2022]   [Jul]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] scsi: bfa: use strscpy to replace strlcpy
From
Date
On Fri, 2022-07-01 at 19:16 +0800, XueBing Chen wrote:
> The strlcpy should not be used

That's not true.

> because it doesn't limit the source length. Preferred is strscpy.

And that's not the reason why strscpy is often a marginally better
choice. In the case of what you change in bfa, none of the reasons why
strscpy might be marginally better actually apply.

James


\
 
 \ /
  Last update: 2022-07-01 13:45    [W:0.025 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site