diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2020-06-18 19:45:40 -0700 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2020-06-18 19:45:40 -0700 |
commit | 425ef692da7e74112f88f0b368f3286dba84f846 (patch) | |
tree | d45729e90010e8d8c539031c3b72165f6884575d /sys/cmd/cat | |
parent | 0522b4bf4e125b7ceb67f7177db692aed3a0ebf9 (diff) |
feat: working parser for rc shell language
Diffstat (limited to 'sys/cmd/cat')
-rw-r--r-- | sys/cmd/cat/cat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cmd/cat/cat.c b/sys/cmd/cat/cat.c index 847ec0c..a82cfe4 100644 --- a/sys/cmd/cat/cat.c +++ b/sys/cmd/cat/cat.c @@ -6,7 +6,7 @@ void cat(Stream *f, byte *name) { long n; - byte buf[8192]; + static byte buf[8192]; while(n = io·read(f, 1, arrlen(buf), buf), n > 0) { if (io·write(stdout, 1, n, buf) != n) { |