[project @ 2004-06-25 21:25:33 by jmb]

Increase limit of property name to 25 chars to accommodate background-attachment.
This was missed from the original background properties checkin

svn path=/import/netsurf/; revision=1011
This commit is contained in:
John Mark Bell 2004-06-25 21:25:33 +00:00
parent 0df8b0734d
commit da1ad11a35

View File

@ -308,12 +308,12 @@ void css_add_ruleset(struct content *c,
void css_add_declarations(struct css_style *style, struct css_node *declaration)
{
char name[20];
char name[25]; /* this must be the same length as p->name */
struct css_node *n;
for (n = declaration; n != 0; n = n->next) {
struct css_property_entry *p;
assert(n->type == CSS_NODE_DECLARATION && n->data && n->value);
if (19 < n->data_length)
if (24 < n->data_length)
continue;
strncpy(name, n->data, n->data_length);
name[n->data_length] = 0;