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/strcat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/userspace/libc/string/strcat.c') diff --git a/src/userspace/libc/string/strcat.c b/src/userspace/libc/string/strcat.c index f62d6e2..bb8f09b 100644 --- a/src/userspace/libc/string/strcat.c +++ b/src/userspace/libc/string/strcat.c @@ -3,10 +3,10 @@ void strcat(char *dest, char *orig) { - u8 s_dest = strlen(dest); - u8 s_orig = strlen(orig); + u32 s_dest = strlen(dest); + u32 s_orig = strlen(orig); - for (u8 i = 0; i < s_orig; i++) + for (u32 i = 0; i < s_orig; i++) dest[s_dest + i] = orig[i]; dest[s_dest + s_orig] = 0; } \ No newline at end of file -- cgit v1.2.3