summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/string/strcat.c3
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;
}
/***