summaryrefslogtreecommitdiffstats
path: root/layout-custom.c
diff options
context:
space:
mode:
authornicm <nicm>2019-10-03 10:24:05 +0000
committernicm <nicm>2019-10-03 10:24:05 +0000
commitf4c7141f5d2abd06bb90443ad9edc7c1a985eb40 (patch)
treeff3a65e8f95a1e7648d310ff625e9d22a8d17873 /layout-custom.c
parentbbd1032a2a6d76cacaaf729a4b465ec7ca24eef7 (diff)
Do not lazily use BUFSIZ for "I don't care what size" when building
strings because it is only guaranteed to be 256 bytes and even the default 1024 is not always enough. Reported by Gregory Pakosz.
Diffstat (limited to 'layout-custom.c')
-rw-r--r--layout-custom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/layout-custom.c b/layout-custom.c
index d759c206..4ac90a37 100644
--- a/layout-custom.c
+++ b/layout-custom.c
@@ -60,7 +60,7 @@ layout_checksum(const char *layout)
char *
layout_dump(struct layout_cell *root)
{
- char layout[BUFSIZ], *out;
+ char layout[8192], *out;
*layout = '\0';
if (layout_append(root, layout, sizeof layout) != 0)