summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-06-19 10:43:17 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-06-19 10:43:17 +0000
commit2a4f3b8fc1e09fa982d3fc9cf97451b5ad1ca04d (patch)
treec0528cb85f85c7d71f58a7fe7716dea7942c4f2b
parent6931a147ebe5c9c3752a2380c0ee3902fd0297a2 (diff)
downloadlibcss-2a4f3b8fc1e09fa982d3fc9cf97451b5ad1ca04d.tar.gz
libcss-2a4f3b8fc1e09fa982d3fc9cf97451b5ad1ca04d.tar.bz2
Hacky increase to buffer size to stop overflow when dumping shorthand properties. Please look away now.
svn path=/trunk/libcss/; revision=7873
-rw-r--r--test/css21.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/css21.c b/test/css21.c
index 5a84489..6c32f14 100644
--- a/test/css21.c
+++ b/test/css21.c
@@ -119,13 +119,13 @@ int main(int argc, char **argv)
#if DUMP_CSS
{
char *out;
- size_t outlen = origlen * 2;
+ size_t outlen = origlen * 4;
size_t written;
out = malloc(outlen);
assert(out != NULL);
dump_sheet(sheet, out, &outlen);
- written = fwrite(out, 1, origlen * 2 - outlen, stdout);
- assert(written == origlen * 2 - outlen);
+ written = fwrite(out, 1, origlen * 4 - outlen, stdout);
+ assert(written == origlen * 4 - outlen);
free(out);
}
#endif