aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/lib/string
diff options
context:
space:
mode:
authorMarvin Borner2020-05-13 21:28:56 +0200
committerMarvin Borner2020-05-13 22:12:41 +0200
commita9c7529dcca845d98192ece62be70f752972216b (patch)
tree666d49ceb411a669abe6191151b2238fd7156c30 /src/kernel/lib/string
parente1a6ed079303dc7d218f1d5326a13b6755781271 (diff)
Replaced alloc.h with liballoc
And many more adaptions to the lib
Diffstat (limited to 'src/kernel/lib/string')
-rw-r--r--src/kernel/lib/string/strdup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/lib/string/strdup.c b/src/kernel/lib/string/strdup.c
index 00bb863..3b138e8 100644
--- a/src/kernel/lib/string/strdup.c
+++ b/src/kernel/lib/string/strdup.c
@@ -4,7 +4,7 @@
char *strdup(const char *orig)
{
u32 s_orig = strlen(orig);
- char *ret = (char *)kmalloc(s_orig + 1);
+ char *ret = (char *)malloc(s_orig + 1);
strcpy(ret, orig);
return ret;
} \ No newline at end of file