mirror of
https://github.com/apache/nuttx.git
synced 2026-10-05 05:07:48 +00:00
procfs: Correct to snprintf-related errors in fs_procfsproc.c. Resolves issue #24
This commit is contained in:
parent
1f33654f2d
commit
feacfeae25
1 changed files with 2 additions and 2 deletions
|
|
@ -960,7 +960,7 @@ static ssize_t proc_groupfd(FAR struct proc_file_s *procfile,
|
|||
#endif
|
||||
|
||||
#if CONFIG_NSOCKET_DESCRIPTORS > 0
|
||||
linesize = snprintf(procfile->line, STATUS_LINELEN, "\n%3-s %-2s %-3s %s\n",
|
||||
linesize = snprintf(procfile->line, STATUS_LINELEN, "\n%-3s %-2s %-3s %s\n",
|
||||
"SD", "RF", "TYP", "FLAGS");
|
||||
copysize = procfs_memcpy(procfile->line, linesize, buffer, remaining, &offset);
|
||||
|
||||
|
|
@ -983,7 +983,7 @@ static ssize_t proc_groupfd(FAR struct proc_file_s *procfile,
|
|||
{
|
||||
linesize = snprintf(procfile->line, STATUS_LINELEN, "%3d %2d %3d %02x",
|
||||
i + CONFIG_NFILE_DESCRIPTORS,
|
||||
(long)socket->s_crefs, socket->s_type, socket->s_flags);
|
||||
socket->s_crefs, socket->s_type, socket->s_flags);
|
||||
copysize = procfs_memcpy(procfile->line, linesize, buffer, remaining, &offset);
|
||||
|
||||
totalsize += copysize;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue