Messages in this thread | | | Date | Thu, 29 Jun 2023 17:41:55 +0300 | From | 'Andy Shevchenko' <> | Subject | Re: [PATCH v1 1/1] kasan: Replace strreplace() with strchrnul() |
| |
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
| |