diff --git a/nshlib/nsh_fscmds.c b/nshlib/nsh_fscmds.c index 5b7b1c088..ca07ba952 100644 --- a/nshlib/nsh_fscmds.c +++ b/nshlib/nsh_fscmds.c @@ -163,8 +163,8 @@ static int cp_handler(FAR struct nsh_vtbl_s *vtbl, FAR const char *srcpath, for (; ; ) { - int nbytesread; - int nbyteswritten; + ssize_t nbyteswritten; + ssize_t nbytesread; FAR char *iobuffer = vtbl->iobuffer; nbytesread = read(rdfd, iobuffer, IOBUFFERSIZE);