From d79aa8e37baf159dab062999c0d0e84044fd3a4c Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 28 Oct 2009 20:36:11 -0400 Subject: Split tokenizer.sh into multiple tests. --- dimension/tokenize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dimension') 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); } -- cgit v1.2.3