cat: use 1025 buffer. this allows reads to be 1024 byte

reading from disk currently returns ENOTSUP if buffer size is not
multiple of sector size.
This commit is contained in:
Bananymous 2023-08-16 09:33:14 +03:00
parent 0fa5401800
commit 5806a6484f
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
bool cat_file(FILE* fp)
{
char buffer[1024];
char buffer[1025];
size_t n_read;
while ((n_read = fread(buffer, 1, sizeof(buffer) - 1, fp)) > 0)
{