init: Use fread() properly

This commit is contained in:
apio 2022-11-06 14:52:50 +01:00
parent 40b078e0a2
commit 88011fc162

View File

@ -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");