summaryrefslogtreecommitdiffstats
path: root/dimension/tokenize.c
diff options
context:
space:
mode:
Diffstat (limited to 'dimension/tokenize.c')
-rw-r--r--dimension/tokenize.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dimension/tokenize.c b/dimension/tokenize.c
index da190be..83ae0aa 100644
--- a/dimension/tokenize.c
+++ b/dimension/tokenize.c
@@ -447,7 +447,7 @@ dmnsn_tokenize(const char *filename, FILE *file)
}
token.filename = malloc(strlen(filename) + 1);
- strcpy(token.filename, filename);
+ token.filename = strdup(filename);
dmnsn_array_push(tokens, &token);
}