init: Use fread() properly
This commit is contained in:
parent
40b078e0a2
commit
88011fc162
@ -21,7 +21,7 @@ void show_motd()
|
||||
}
|
||||
|
||||
char buf[4096];
|
||||
size_t nread = fread(buf, sizeof(buf) - 1, 1, fp);
|
||||
size_t nread = fread(buf, 1, sizeof(buf) - 1, fp);
|
||||
if (ferror(fp))
|
||||
{
|
||||
perror("fread");
|
||||
|
Loading…
Reference in New Issue
Block a user