xiaoxiang781216 commented on code in PR #20592:
URL: https://github.com/apache/nuttx/pull/20592#discussion_r4244022890
##########
fs/vfs/fs_readlink.c:
##########
@@ -138,13 +141,14 @@ ssize_t readlink(FAR const char *path, FAR char *buf,
size_t bufsize)
/* Copy the link target path to the user-provided buffer. */
strlcpy(buf, node->u.i_link, bufsize);
Review Comment:
nread = strlcpy(...);
nread = MIN(nread, bufsize);
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]