image: Correct strncpy() warning with image_set_name()
authorSimon Glass <sjg@chromium.org>
Thu, 10 Nov 2022 02:14:39 +0000 (19:14 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 22 Nov 2022 22:13:34 +0000 (15:13 -0700)
commit88ff7cb1c8bb411572ac82cd7e312281d8e09d3b
tree8e06262aeed1e10c070271807ee6af79364baf3d
parentfb132b37278c708692dfc3669339ae6d60ee7822
image: Correct strncpy() warning with image_set_name()

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 <sjg@chromium.org>
include/image.h