fs/procfs: Fix an error in a common function that manages read data.
This commit is contained in:
parent
9f80e4ccf1
commit
335d1e0030
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user