diff options
Diffstat (limited to 'nuttx/examples/nsh/nsh_fscmds.c')
-rw-r--r-- | nuttx/examples/nsh/nsh_fscmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/examples/nsh/nsh_fscmds.c b/nuttx/examples/nsh/nsh_fscmds.c index eb43ed23c..40f894ec8 100644 --- a/nuttx/examples/nsh/nsh_fscmds.c +++ b/nuttx/examples/nsh/nsh_fscmds.c @@ -457,7 +457,7 @@ int cmd_cat(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv) while (nbyteswritten < nbytesread) { - int n = write(1, buffer, nbytesread); + ssize_t n = nsh_write(vtbl, buffer, nbytesread); if (n < 0) { /* EINTR is not an error (but will stop stop the cat) */ |