diff options
Diffstat (limited to 'src/kernel/lib/string/strdup.c')
-rw-r--r-- | src/kernel/lib/string/strdup.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/kernel/lib/string/strdup.c b/src/kernel/lib/string/strdup.c index e59dff4..82d14ef 100644 --- a/src/kernel/lib/string/strdup.c +++ b/src/kernel/lib/string/strdup.c @@ -3,8 +3,8 @@ char *strdup(const char *orig) { - size_t s_orig = strlen(orig); - char *ret = (char *) kmalloc(s_orig + 1); - strcpy(ret, orig); - return ret; + size_t s_orig = strlen(orig); + char *ret = (char *)kmalloc(s_orig + 1); + strcpy(ret, orig); + return ret; }
\ No newline at end of file |