aboutsummaryrefslogtreecommitdiff
path: root/src/sysbin/shell
diff options
context:
space:
mode:
Diffstat (limited to 'src/sysbin/shell')
-rw-r--r--src/sysbin/shell/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sysbin/shell/main.c b/src/sysbin/shell/main.c
index e27b4e9..3f45332 100644
--- a/src/sysbin/shell/main.c
+++ b/src/sysbin/shell/main.c
@@ -34,9 +34,10 @@ void cat(char* file) {
while (true) {
size_t r = sc_read(f, p, 128, buf);
p += r;
- fwrite(buf, r, 1, stdout);
+ fwrite(buf, 1, r, stdout);
if (r < 128) break;
}
+ printf("\n -> %d bytes\n", p);
sc_close(f);
} else {
printf("Could not open file '%s'\n", file);