summaryrefslogtreecommitdiff
path: root/kernel/libc/string
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2024-06-26 21:17:06 +0200
committerAnton Kling <anton@kling.gg>2024-06-26 21:20:47 +0200
commitedf86881446717b633dbb2aaac7b25dbc4630c3f (patch)
tree5270af1ffcbd83ee4cd3809fd6cf525780d1f431 /kernel/libc/string
parent58423a4cf62ee848fac5ee6755fa459c7db5acb2 (diff)
Kernel: Code cleanup
Diffstat (limited to 'kernel/libc/string')
-rw-r--r--kernel/libc/string/copy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/libc/string/copy.c b/kernel/libc/string/copy.c
index 3ab5618..17f720c 100644
--- a/kernel/libc/string/copy.c
+++ b/kernel/libc/string/copy.c
@@ -1,8 +1,8 @@
#include <assert.h>
#include <kmalloc.h>
+#include <mmu.h>
#include <stddef.h>
#include <string.h>
-#include <mmu.h>
char *copy_and_allocate_string(const char *s) {
size_t l = strlen(s) + 1;
@@ -26,6 +26,6 @@ char *copy_and_allocate_user_string(const char *s) {
if (!r) {
return NULL;
}
- memcpy(r, s, len+1);
+ memcpy(r, s, len + 1);
return r;
}