diff options
Diffstat (limited to 'src/stylesheet.c')
-rw-r--r-- | src/stylesheet.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stylesheet.c b/src/stylesheet.c index 7608b16..9be6d70 100644 --- a/src/stylesheet.c +++ b/src/stylesheet.c @@ -535,7 +535,8 @@ css_error css_stylesheet_rule_append_style(css_stylesheet *sheet, if (cur != NULL) { /* Already have a style, so append to the end of the bytecode */ css_style *temp = sheet->alloc(cur, - cur->length + style->length, sheet->pw); + sizeof(css_style) + cur->length + style->length, + sheet->pw); if (temp == NULL) return CSS_NOMEM; |