summaryrefslogtreecommitdiffstats
path: root/commands/cat.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands/cat.c')
-rw-r--r--commands/cat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/cat.c b/commands/cat.c
index dd477c54f9..b126449f6b 100644
--- a/commands/cat.c
+++ b/commands/cat.c
@@ -54,9 +54,9 @@ static int do_cat(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
while((ret = read(fd, buf, 1024)) > 0) {
for(i = 0; i < ret; i++) {
if (isprint(buf[i]) || buf[i] == '\n' || buf[i] == '\t')
- putc(buf[i]);
+ putchar(buf[i]);
else
- putc('.');
+ putchar('.');
}
if(ctrlc()) {
err = 1;