summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-06-27 16:52:41 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-06-27 16:52:41 +0000
commit160b31fc121ae69b7f9a23d20701e16b74af062c (patch)
treed0f8e5f360666e7df16fb978280d12a205af10c9 /src
parent5dd7e9d762f8ae3535857ab9b4756d84bc29bcc0 (diff)
downloadlibcss-160b31fc121ae69b7f9a23d20701e16b74af062c.tar.gz
libcss-160b31fc121ae69b7f9a23d20701e16b74af062c.tar.bz2
Fix comma separated list parsing
svn path=/trunk/libcss/; revision=8067
Diffstat (limited to 'src')
-rw-r--r--src/parse/properties/utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/parse/properties/utils.c b/src/parse/properties/utils.c
index c98bbac..3cd3cb2 100644
--- a/src/parse/properties/utils.c
+++ b/src/parse/properties/utils.c
@@ -777,7 +777,8 @@ css_error comma_list_to_bytecode(css_language *c,
* from the name we already have */
lerror = lwc_context_intern(
c->sheet->dictionary,
- (char *) buf, len, &newname);
+ (char *) buf, p - buf,
+ &newname);
if (lerror != lwc_error_ok) {
error = css_error_from_lwc_error(
lerror);