mirror of
https://github.com/bradgrantham/apple2e.git
synced 2024-12-29 14:29:53 +00:00
remove warning on unused result of fread by using the result
This commit is contained in:
parent
43448014b1
commit
347c2d4ddb
@ -1121,7 +1121,7 @@ struct apple2screen : public widget
|
||||
long length = ftell(fp);
|
||||
fseek(fp, 0, SEEK_SET);
|
||||
char *text = (char *)malloc(length + 1);
|
||||
fread(text, 1, length, fp);
|
||||
length = fread(text, 1, length, fp);
|
||||
text[length] = '\0';
|
||||
event_queue.push_back({PASTE, 0, text});
|
||||
fclose(fp);
|
||||
|
Loading…
Reference in New Issue
Block a user