aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/string/strcat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string/strcat.c b/src/string/strcat.c
index 4fff095..ed10cc2 100644
--- a/src/string/strcat.c
+++ b/src/string/strcat.c
@@ -55,7 +55,7 @@ char* strcat(char* restrict whither, const char* restrict whence)
*/
char* strncat(char* restrict whither, const char* restrict whence, size_t maxlen)
{
- strncpy(whither + strlen(whither), whence, laxmen);
+ strncpy(whither + strlen(whither), whence, maxlen);
return whither;
}