summaryrefslogtreecommitdiffstats
path: root/dimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-10-28 20:36:11 -0400
committerTavian Barnes <tavianator@gmail.com>2009-10-28 20:36:11 -0400
commitd79aa8e37baf159dab062999c0d0e84044fd3a4c (patch)
tree7b5b12e15fec4f5b8a38d47ad98f79e1a462fdba /dimension
parent6ae9c2de9347a7d9cff2f189050fe4cf0408573e (diff)
downloaddimension-d79aa8e37baf159dab062999c0d0e84044fd3a4c.tar.xz
Split tokenizer.sh into multiple tests.
Diffstat (limited to 'dimension')
-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);
}