From 6f3a09abe930fb2cbfd2de353f919252f55059b9 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Fri, 25 Sep 2020 13:13:45 -0400 Subject: return the correct pointer --- src/string/strcat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/string/strcat.c b/src/string/strcat.c index 77a95095..ef2fa413 100644 --- a/src/string/strcat.c +++ b/src/string/strcat.c @@ -16,7 +16,8 @@ char * strcat(char * restrict s1, const char * restrict s2) i++; } - return strcpy(s1 + i, s2); + strcpy(s1 + i, s2); + return s1; } /*** -- cgit v1.2.1