mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-15 23:29:21 +03:00
[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:
parent
0df8b0734d
commit
da1ad11a35
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user