We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08089c9 commit 53ab15cCopy full SHA for 53ab15c
devices/pci/src/io.c
@@ -102,7 +102,7 @@ void pciReadFile(RWCommand *rcmd) {
102
if((rcmd->position+rcmd->length) > file->size) truelen = file->size - rcmd->position;
103
else truelen = rcmd->length;
104
105
- memcpy(rcmd->data, file->data, truelen);
+ memcpy(rcmd->data, file->data + rcmd->position, truelen);
106
rcmd->length = truelen;
107
rcmd->header.header.status = truelen;
108
rcmd->header.header.length += truelen;
0 commit comments