diff --git a/scripts/mkimage.c b/scripts/mkimage.c index c7267a2..891d7b6 100644 --- a/scripts/mkimage.c +++ b/scripts/mkimage.c @@ -150,7 +150,7 @@ static inline void image_set_name(image_header_t *hdr, const char *name) { - strncpy(image_get_name(hdr), name, IH_NMLEN); + strncpy(image_get_name(hdr), name, IH_NMLEN - 1); } /**