Re: [Cocci] cocci: missed strlcpy->strscpy conversion?

2020-12-31 Thread Joe Perches
On Thu, 2020-12-31 at 22:21 +0100, Julia Lawall wrote: > It seems that the problem is not really the for_each, but the * in front > of a "function call" on the left side of an assignment. Without the *, > everything is fine. So it is indeed probably not worth doing anything > about. Maybe a comb

[Cocci] cocci: missed strlcpy->strscpy conversion?

2020-12-31 Thread Joe Perches
On Thu, 2020-12-31 at 11:04 -0800, Joe Perches wrote: > strlcpy is deprecated. see: Documentation/process/deprecated.rst > > Change the calls that do not use the strlcpy return value to the > preferred strscpy. > > Done with cocci script: > > @@ > expression e1, e2, e3; > @@ > > - strlcpy(

Re: [Cocci] cocci: missed strlcpy->strscpy conversion?

2020-12-31 Thread Julia Lawall
On Thu, 31 Dec 2020, Joe Perches wrote: > On Thu, 2020-12-31 at 21:27 +0100, Julia Lawall wrote: > > On Thu, 31 Dec 2020, Joe Perches wrote: > > > On Thu, 2020-12-31 at 11:04 -0800, Joe Perches wrote: > > > > strlcpy is deprecated. see: Documentation/process/deprecated.rst > > > > > > > > Chan

Re: [Cocci] cocci: missed strlcpy->strscpy conversion?

2020-12-31 Thread Julia Lawall
On Thu, 31 Dec 2020, Joe Perches wrote: > On Thu, 2020-12-31 at 21:27 +0100, Julia Lawall wrote: > > On Thu, 31 Dec 2020, Joe Perches wrote: > > > On Thu, 2020-12-31 at 11:04 -0800, Joe Perches wrote: > > > > strlcpy is deprecated. see: Documentation/process/deprecated.rst > > > > > > > > Chan

Re: [Cocci] cocci: missed strlcpy->strscpy conversion?

2020-12-31 Thread Joe Perches
On Thu, 2020-12-31 at 21:27 +0100, Julia Lawall wrote: > On Thu, 31 Dec 2020, Joe Perches wrote: > > On Thu, 2020-12-31 at 11:04 -0800, Joe Perches wrote: > > > strlcpy is deprecated. see: Documentation/process/deprecated.rst > > > > > > Change the calls that do not use the strlcpy return value t

Re: [Cocci] cocci: missed strlcpy->strscpy conversion?

2020-12-31 Thread Julia Lawall
On Thu, 31 Dec 2020, Joe Perches wrote: > On Thu, 2020-12-31 at 11:04 -0800, Joe Perches wrote: > > strlcpy is deprecated. see: Documentation/process/deprecated.rst > > > > Change the calls that do not use the strlcpy return value to the > > preferred strscpy. > > > > Done with cocci script: >