From b036f7360f54151067ad560c75682a0daee9e718 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 31 Aug 2015 20:06:35 +0200 Subject: typo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/string/strcat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.2.3-70-g09d2