aboutsummaryrefslogtreecommitdiffstats
path: root/src/string
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-08-31 20:06:35 +0200
committerMattias Andrée <maandree@operamail.com>2015-08-31 20:06:35 +0200
commitb036f7360f54151067ad560c75682a0daee9e718 (patch)
tree75be89a39218730b08364cba658aafc0ad89cc10 /src/string
parentfix dupa macros (diff)
downloadslibc-b036f7360f54151067ad560c75682a0daee9e718.tar.gz
slibc-b036f7360f54151067ad560c75682a0daee9e718.tar.bz2
slibc-b036f7360f54151067ad560c75682a0daee9e718.tar.xz
typo
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/string')
-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;
}