Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions fs/mount/fs_procfs_mount.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,11 @@ static void mount_sprintf(FAR struct mount_info_s *info,
linesize = vsnprintf(info->line, info->linelen, fmt, ap);
va_end(ap);

if (linesize >= info->linelen)
{
linesize = info->linelen - 1;
}

/* Copy the line buffer to the user buffer */

copysize = procfs_memcpy(info->line, linesize,
Expand Down