tools: mkimage: fix sizeof_mismatch found by coverity