git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4ad83b
)
strdup CDATA
author
Matthias Kramm
<kramm@quiss.org>
Sat, 7 Feb 2009 22:43:35 +0000
(23:43 +0100)
committer
Matthias Kramm
<kramm@quiss.org>
Sat, 7 Feb 2009 22:43:35 +0000
(23:43 +0100)
lib/as3/tokenizer.lex
patch
|
blob
|
history
diff --git
a/lib/as3/tokenizer.lex
b/lib/as3/tokenizer.lex
index
63f586d
..
c84e3b3
100644
(file)
--- a/
lib/as3/tokenizer.lex
+++ b/
lib/as3/tokenizer.lex
@@
-281,6
+281,7
@@
static void handleCData(char*s, int len)
{
a3_lval.str.str = s+9; // <![CDATA[
a3_lval.str.len = len-9-3;// ]]>
+ a3_lval.str.str = strdup_n(a3_lval.str.str, a3_lval.str.len);
}
static void handleString(char*s, int len)