From 391ed256d21a6ae2e2456d1809f357e6e96e15d1 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 20 Jan 2020 23:12:54 +0100 Subject: Added pure awesomeness Actually quite some days of work but ok --- src/kernel/lib/string/strdup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (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 9330144..7ddbf74 100644 --- a/src/kernel/lib/string/strdup.c +++ b/src/kernel/lib/string/strdup.c @@ -1,10 +1,10 @@ #include -#include +#include 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 -- cgit v1.2.3