Compare commits

..

No commits in common. "master" and "dcc6502_v2.1" have entirely different histories.

View File

@ -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)) {
size_t bytes_read = fread(&buffer[options.org + byte_count], 1, 1, input_file);
byte_count += bytes_read;
fread(&buffer[options.org + byte_count], 1, 1, input_file);
byte_count++;
}
fclose(input_file);