fs/procfs: Fix an error in a common function that manages read data.

This commit is contained in:
Gregory Nutt 2018-01-12 17:40:04 -06:00
parent 9f80e4ccf1
commit 335d1e0030

View File

@ -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 */