mirror of
https://github.com/bradgrantham/apple2e.git
synced 2025-01-04 07:30:49 +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);
|
long length = ftell(fp);
|
||||||
fseek(fp, 0, SEEK_SET);
|
fseek(fp, 0, SEEK_SET);
|
||||||
char *text = (char *)malloc(length + 1);
|
char *text = (char *)malloc(length + 1);
|
||||||
fread(text, 1, length, fp);
|
length = fread(text, 1, length, fp);
|
||||||
text[length] = '\0';
|
text[length] = '\0';
|
||||||
event_queue.push_back({PASTE, 0, text});
|
event_queue.push_back({PASTE, 0, text});
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
|
Loading…
Reference in New Issue
Block a user