aboutsummaryrefslogtreecommitdiff
path: root/src/sysbin/shell
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2017-04-19 11:37:40 +0200
committerAlex Auvolat <alex@adnab.me>2017-04-19 11:37:40 +0200
commit8e88e765ee17296a85c5ae372471ed248ce321db (patch)
tree94c375f5ec15d215dac16c6f9e386f24283c07df /src/sysbin/shell
parent96da27494f89d75f8aec0c8894440c3f7482f54b (diff)
downloadkogata-8e88e765ee17296a85c5ae372471ed248ce321db.tar.gz
kogata-8e88e765ee17296a85c5ae372471ed248ce321db.zip
Mini reorganization
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);