aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/lib/string/strcat.c
diff options
context:
space:
mode:
authorMarvin Borner2020-03-18 17:32:50 +0100
committerMarvin Borner2020-03-18 17:32:50 +0100
commitf495cc1e93710c233292a503720ec235a61b685c (patch)
tree23b0b4b82b6d80001c1ffdb15f00b93cbdc65722 /src/kernel/lib/string/strcat.c
parentc6657aac0c5d5ecf347bc082cb6df38e1174d297 (diff)
Applied official linux kernel code style guidelines
Due to my change to vim and the clang-format plugin this was needed!
Diffstat (limited to 'src/kernel/lib/string/strcat.c')
-rw-r--r--src/kernel/lib/string/strcat.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/kernel/lib/string/strcat.c b/src/kernel/lib/string/strcat.c
index e0d6885..4328f87 100644
--- a/src/kernel/lib/string/strcat.c
+++ b/src/kernel/lib/string/strcat.c
@@ -2,9 +2,10 @@
void strcat(char *dest, const char *orig)
{
- size_t s_dest = strlen(dest);
- size_t s_orig = strlen(orig);
+ size_t s_dest = strlen(dest);
+ size_t s_orig = strlen(orig);
- for (size_t i = 0; i < s_orig; i++) dest[s_dest + i] = orig[i];
- dest[s_dest + s_orig] = 0;
+ for (size_t i = 0; i < s_orig; i++)
+ dest[s_dest + i] = orig[i];
+ dest[s_dest + s_orig] = 0;
} \ No newline at end of file