Comments
Patch
@@ -1286,10 +1286,10 @@ int write_image_to_file(const unsigned char
*buf, unsigned long size, const char
l = get_next_included_romentry(0);
while (l != NULL) {
- const char* name = (l->file[0] == '\0') ? l->name : l->file;
+ const char* name = (l->file == NULL || l->file[0] ==
'\0') ? l->name : l->file;
unsigned int len = l->end - l->start + 1;
msg_gdbg2("Writing \"%s\" to \"%s\" 0x%08x - 0x%08x (%uB)... ",
- l->name, l->file, l->start, l->end, len);
+ l->name, name, l->start, l->end, len);
if (write_buf_to_file(buf + l->start, len, name) != 0) {