mirror of
https://github.com/torvalds/linux.git
synced 2024-12-08 12:11:30 +00:00
fortify: strscpy: Fix flipped q and p docstring typo
Fix typo in the strscpy() docstring where q and p were flipped. Signed-off-by: Arne Welzel <arne.welzel@corelight.com> Signed-off-by: Kees Cook <keescook@chromium.org>
This commit is contained in:
parent
2d47c6956a
commit
ead62aa370
@ -299,8 +299,8 @@ extern ssize_t __real_strscpy(char *, const char *, size_t) __RENAME(strscpy);
|
||||
* @q: Where to copy the string from
|
||||
* @size: Size of destination buffer
|
||||
*
|
||||
* Copy the source string @p, or as much of it as fits, into the destination
|
||||
* @q buffer. The behavior is undefined if the string buffers overlap. The
|
||||
* Copy the source string @q, or as much of it as fits, into the destination
|
||||
* @p buffer. The behavior is undefined if the string buffers overlap. The
|
||||
* destination @p buffer is always NUL terminated, unless it's zero-sized.
|
||||
*
|
||||
* Preferred to strlcpy() since the API doesn't require reading memory
|
||||
|
Loading…
Reference in New Issue
Block a user