summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorArne Welzel <arne.welzel@corelight.com>2023-05-13 12:18:40 +0300
committerKees Cook <keescook@chromium.org>2023-05-16 23:58:39 +0300
commitead62aa370a81c4fb42a44c4edeafe13e0a3a703 (patch)
tree764a86df92bbf4e8601590e6fd89b9dd6de8f1f7 /include
parent2d47c6956ab3c8b580a59d7704aab3e2a4882b6c (diff)
downloadlinux-ead62aa370a81c4fb42a44c4edeafe13e0a3a703.tar.xz
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/fortify-string.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/fortify-string.h b/include/linux/fortify-string.h
index c9de1f59ee80..e29df83bff8a 100644
--- a/include/linux/fortify-string.h
+++ b/include/linux/fortify-string.h
@@ -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