diff options
Diffstat (limited to 'src/kernel/lib/string')
-rw-r--r-- | src/kernel/lib/string/strdup.c | 2 |
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 |