From 0f54f0de1004c6e9a455c295dc76879ac37a408f Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 29 Apr 2020 21:16:56 +0200 Subject: Fixed several warnings, errors and dumb bugs --- src/userspace/libc/string/strdup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/userspace/libc/string/strdup.c') diff --git a/src/userspace/libc/string/strdup.c b/src/userspace/libc/string/strdup.c index f2a7c35..a42b02d 100644 --- a/src/userspace/libc/string/strdup.c +++ b/src/userspace/libc/string/strdup.c @@ -5,7 +5,7 @@ char *strdup(char *orig) { - u8 s_orig = strlen(orig); + u32 s_orig = strlen(orig); char *ret = (char *)malloc(s_orig + 1); strcpy(ret, orig); return ret; -- cgit v1.2.3