From a9c7529dcca845d98192ece62be70f752972216b Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 13 May 2020 21:28:56 +0200 Subject: Replaced alloc.h with liballoc And many more adaptions to the lib --- src/kernel/lib/string/strdup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/kernel/lib/string/strdup.c') 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 -- cgit v1.2.3