Re: [PATCH v2 29/45] image: Correct strncpy() warning with image_set_name()

2022-10-14 Thread Simon Glass
Hi Heinrich, On Thu, 13 Oct 2022 at 10:23, Heinrich Schuchardt wrote: > > On 10/13/22 14:29, Simon Glass wrote: > > gcc 12 seems to warn on strncpy() as a matter of course. Rewrite the code > > a different way to do the same thing, to avoid the warning. > > > > Signed-off-by: Simon Glass > > ---

Re: [PATCH v2 29/45] image: Correct strncpy() warning with image_set_name()

2022-10-13 Thread Heinrich Schuchardt
On 10/13/22 14:29, Simon Glass wrote: gcc 12 seems to warn on strncpy() as a matter of course. Rewrite the code a different way to do the same thing, to avoid the warning. Signed-off-by: Simon Glass --- (no changes since v1) include/image.h | 8 +++- 1 file changed, 7 insertions(+), 1

[PATCH v2 29/45] image: Correct strncpy() warning with image_set_name()

2022-10-13 Thread Simon Glass
gcc 12 seems to warn on strncpy() as a matter of course. Rewrite the code a different way to do the same thing, to avoid the warning. Signed-off-by: Simon Glass --- (no changes since v1) include/image.h | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/image.h