Fix generating fiasco images
This commit is contained in:
1 parent
28ca666c6e
commit
d1bb1b6094
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -231,7 +231,7 @@ char ** device_list_alloc_to_bufs(const struct device_list * device_list) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ret[j][0] = len;
|
((uint8_t*)ret[j])[0] = len;
|
||||||
|
|
||||||
++j;
|
++j;
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -409,7 +409,7 @@ int fiasco_write_to_file(struct fiasco * fiasco, const char * file) {
|
|||||||
for ( i = 0; i < device_count; ++i ) {
|
for ( i = 0; i < device_count; ++i ) {
|
||||||
WRITE_OR_FAIL(file, fd, "2", 1); /* 2 - device & hwrevs */
|
WRITE_OR_FAIL(file, fd, "2", 1); /* 2 - device & hwrevs */
|
||||||
WRITE_OR_FAIL(file, fd, &device_hwrevs_bufs[i][0], 1);
|
WRITE_OR_FAIL(file, fd, &device_hwrevs_bufs[i][0], 1);
|
||||||
WRITE_OR_FAIL(file, fd, device_hwrevs_bufs[i]+1, device_hwrevs_bufs[i][0]);
|
WRITE_OR_FAIL(file, fd, device_hwrevs_bufs[i]+1, ((uint8_t *)(device_hwrevs_bufs[i]))[0]);
|
||||||
}
|
}
|
||||||
free(device_hwrevs_bufs);
|
free(device_hwrevs_bufs);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user