From: Arne Welzel Date: Sat, 13 May 2023 09:18:40 +0000 (+0200) Subject: fortify: strscpy: Fix flipped q and p docstring typo X-Git-Tag: v6.6.17~4409^2~55 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ead62aa370a81c4fb42a44c4edeafe13e0a3a703;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Kees Cook --- diff --git a/include/linux/fortify-string.h b/include/linux/fortify-string.h index c9de1f5..e29df83 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