mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-20 12:55:43 +08:00
nshlib: Fix static scanning errors
Signed-off-by: wangmingrong <wangmingrong@xiaomi.com>
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user