diff options
author | Marvin Borner | 2020-04-29 21:16:56 +0200 |
---|---|---|
committer | Marvin Borner | 2020-04-29 21:16:56 +0200 |
commit | 0f54f0de1004c6e9a455c295dc76879ac37a408f (patch) | |
tree | b3a6b086f33689fe887fdfcf80fa4e749b07d119 /src/userspace/libc/string/strdup.c | |
parent | 4546c75d685475d8b9f215b588364e1d1bbd0b79 (diff) |
Fixed several warnings, errors and dumb bugs
Diffstat (limited to 'src/userspace/libc/string/strdup.c')
-rw-r--r-- | src/userspace/libc/string/strdup.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |