On Wed, Jul 13, 2022 at 11:14 AM David Laight <David.Laight@xxxxxxxxxx> wrote: > > > if (pint) > > - *pint = value; > > + memcpy(pint, &value, min(nsize, sizeof(value))); > > That is just soooooo broken. OK. -- With Best Regards, Andy Shevchenko
On Wed, Jul 13, 2022 at 11:14 AM David Laight <David.Laight@xxxxxxxxxx> wrote: > > > if (pint) > > - *pint = value; > > + memcpy(pint, &value, min(nsize, sizeof(value))); > > That is just soooooo broken. OK. -- With Best Regards, Andy Shevchenko