mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
nshlib: Fix static scanning errors
Signed-off-by: wangmingrong <wangmingrong@xiaomi.com>
This commit is contained in:
parent
b7e08d4fba
commit
5e59b0b384
1 changed files with 1 additions and 1 deletions
|
|
@ -88,7 +88,7 @@ static int getpid_callback(FAR struct nsh_vtbl_s *vtbl,
|
|||
return 0;
|
||||
}
|
||||
|
||||
len = read(fd, buffer, sizeof(buffer));
|
||||
len = read(fd, buffer, sizeof(buffer) - 1);
|
||||
close(fd);
|
||||
if (len < 0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue