From: Alejandro Colomar Date: Mon, 4 Dec 2023 11:58:31 +0000 (+0100) Subject: strncat.3: Fix return value of possible implementation X-Git-Tag: man-pages-6.06~79 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9aeebbdeef81301fb9edf665282be3c25484fc3d;p=thirdparty%2Fman-pages.git strncat.3: Fix return value of possible implementation Accidentally, I changed the return while changing something else. Fix it. Fixes: 790795ec4e5e ("strncat.3: Write the null byte with stpcpy(3)") Signed-off-by: Alejandro Colomar --- diff --git a/man3/strncat.3 b/man3/strncat.3 index 6879a0626b..a7bf5c41ea 100644 --- a/man3/strncat.3 +++ b/man3/strncat.3 @@ -40,7 +40,8 @@ strncat(char *restrict dst, const char *restrict src, size_t ssize) { #define strnul(s) (s + strlen(s)) \& - return stpcpy(mempcpy(strnul(dst), src, strnlen(src, ssize)), ""); + stpcpy(mempcpy(strnul(dst), src, strnlen(src, ssize)), ""); + return dst; } .EE .in