diff options
Diffstat (limited to 'src/kernel/lib/string/strcpy.c')
-rw-r--r-- | src/kernel/lib/string/strcpy.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/kernel/lib/string/strcpy.c b/src/kernel/lib/string/strcpy.c index bab8535..6117e7c 100644 --- a/src/kernel/lib/string/strcpy.c +++ b/src/kernel/lib/string/strcpy.c @@ -2,8 +2,9 @@ void strcpy(char *dest, const char *orig) { - size_t s_orig = strlen(orig); + size_t s_orig = strlen(orig); - for (size_t i = 0; i < s_orig; i++) dest[i] = orig[i]; - dest[s_orig] = 0; + for (size_t i = 0; i < s_orig; i++) + dest[i] = orig[i]; + dest[s_orig] = 0; }
\ No newline at end of file |