forked from Bananymous/banan-os
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:
parent
5a94818210
commit
a09232a555
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue