aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/lib/string/strdup.c
diff options
context:
space:
mode:
authorMarvin Borner2020-01-20 23:12:54 +0100
committerMarvin Borner2020-01-20 23:12:54 +0100
commit391ed256d21a6ae2e2456d1809f357e6e96e15d1 (patch)
tree0fe9ffb3c59bbfeb3d8a04ab7fc6efba60d81e79 /src/kernel/lib/string/strdup.c
parentd5d1749257ff8b9aa6b5ace4b4720b484a2860f3 (diff)
Added pure awesomeness
Actually quite some days of work but ok
Diffstat (limited to 'src/kernel/lib/string/strdup.c')
-rw-r--r--src/kernel/lib/string/strdup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/lib/string/strdup.c b/src/kernel/lib/string/strdup.c
index 9330144..7ddbf74 100644
--- a/src/kernel/lib/string/strdup.c
+++ b/src/kernel/lib/string/strdup.c
@@ -1,10 +1,10 @@
#include <kernel/lib/string.h>
-#include <kernel/lib/stdlib.h>
+#include <kernel/memory/kheap.h>
char *strdup(const char *orig)
{
size_t s_orig = strlen(orig);
- char *ret = kmalloc(s_orig + 1);
+ char *ret = (char *) kmalloc(s_orig + 1);
strcpy(ret, orig);
return ret;
} \ No newline at end of file