Re: [PATCH v1 1/1] kasan: Replace strreplace() with strchrnul()

From: 'Andy Shevchenko'
Date: Thu Jun 29 2023 - 10:42:06 EST


On Thu, Jun 29, 2023 at 02:32:13PM +0000, David Laight wrote:
> From: Andy Shevchenko
> > Sent: 28 June 2023 16:34

...

> > /* Strip line number; without filename it's not very helpful. */
> > - strreplace(token, ':', '\0');
> > + p[strchrnul(token, ':') - token] = '\0';
>
> Isn't 'p' undefined here?

Yep, should be token. Not sure what I was thinking about...

--
With Best Regards,
Andy Shevchenko