aboutsummaryrefslogtreecommitdiff
path: root/src/mlibc/string/strcati.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mlibc/string/strcati.c')
-rw-r--r--src/mlibc/string/strcati.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mlibc/string/strcati.c b/src/mlibc/string/strcati.c
index d925eb7..8fdcc1a 100644
--- a/src/mlibc/string/strcati.c
+++ b/src/mlibc/string/strcati.c
@@ -1,6 +1,7 @@
#include <mlibc/string.h>
-void strcati(char *dest, const char *orig) {
+void strcati(char *dest, const char *orig)
+{
size_t s_orig = strlen(orig);
strdisp(dest, (int) s_orig);
for (size_t i = 0; i < s_orig; i++) dest[i] = orig[i];