aboutsummaryrefslogtreecommitdiff
path: root/tests.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests.c')
-rw-r--r--tests.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests.c b/tests.c
index 522d03d..1cd5a56 100644
--- a/tests.c
+++ b/tests.c
@@ -57,7 +57,7 @@ void test_touch() {
void test_strip_domainname() {
puts("strip_domainname()");
- char *input = "subdomain.domain.tld";
+ char *input = strdup("subdomain.domain.tld");
char *truth = "subdomain";
char *result;