Compare commits
2 Commits
dcc6502_v2
...
master
Author | SHA1 | Date |
---|---|---|
Tennessee Carmel-Veilleux | 680c212992 | |
Nathan Rosenquist | 8b01d8b204 |
|
@ -769,8 +769,8 @@ int main(int argc, char *argv[]) {
|
|||
|
||||
byte_count = 0;
|
||||
while(!feof(input_file) && ((options.org + byte_count) <= 0xFFFFu) && (byte_count < options.max_num_bytes)) {
|
||||
fread(&buffer[options.org + byte_count], 1, 1, input_file);
|
||||
byte_count++;
|
||||
size_t bytes_read = fread(&buffer[options.org + byte_count], 1, 1, input_file);
|
||||
byte_count += bytes_read;
|
||||
}
|
||||
|
||||
fclose(input_file);
|
||||
|
|
Loading…
Reference in New Issue