firmware-utils: mkfwimage: fix memcpy and strncpy usage