Re: [PATCH v3 3/3] vsprintf: Move space out of string literals in fourcc_string()

From: Andy Shevchenko
Date: Thu Jan 27 2022 - 09:58:11 EST


On Wed, Jan 26, 2022 at 01:22:32PM -0800, Kees Cook wrote:
> On Wed, Jan 26, 2022 at 04:19:17PM +0200, Andy Shevchenko wrote:

...

> > *p++ = ' ';
> > *p++ = '(';
>
> No need for any of the manual construction nor stpcpy():

No, we are better to avoid recursive printf() calls.
Entire vsprintf.c is written keeping that in mind.

--
With Best Regards,
Andy Shevchenko