mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
fs/procfs: Fix an error in a common function that manages read data.
This commit is contained in:
@@ -124,7 +124,7 @@ size_t procfs_memcpy(FAR const char *src, size_t srclen,
|
||||
/* Handle the remaining offset */
|
||||
|
||||
srclen -= lnoffset;
|
||||
dest += lnoffset;
|
||||
src += lnoffset;
|
||||
*offset = 0;
|
||||
|
||||
/* Copy the line into the user destination buffer */
|
||||
|
||||
Reference in New Issue
Block a user