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