diff options
author | Jakob Kaivo <jkk@ung.org> | 2020-09-25 13:13:45 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2020-09-25 13:13:45 -0400 |
commit | 6f3a09abe930fb2cbfd2de353f919252f55059b9 (patch) | |
tree | 6052271f4c031a9e49a7efb273d24b7c0884ce91 | |
parent | f45f928892e9d09f72dcc034bede48eb63014e35 (diff) |
return the correct pointer
-rw-r--r-- | src/string/strcat.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } /*** |