aboutsummaryrefslogtreecommitdiffstats
path: root/src/string/str/strdup.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/string/str/strdup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string/str/strdup.c b/src/string/str/strdup.c
index 6670ee9..9b428b4 100644
--- a/src/string/str/strdup.c
+++ b/src/string/str/strdup.c
@@ -34,7 +34,7 @@
char* strdup(const char* string)
{
size_t n = strlen(string) + 1;
- char* r = malloc(n * sizeof(char));
+ char* r = aligned_alloc(1, n * sizeof(char));
return r == NULL ? NULL : memcpy(r, string, n * sizeof(char));
}