From c1c88f66166ed26d0bd346570c37f006e3c8364b Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sun, 18 Jan 2015 02:46:03 +0100 Subject: [PATCH] Client: Fix too small memory allocation for window config view. --- src/client/draw_wins.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/draw_wins.c b/src/client/draw_wins.c index c0d3d8a..d45bb1e 100644 --- a/src/client/draw_wins.c +++ b/src/client/draw_wins.c @@ -338,7 +338,7 @@ static char * winconf_geom_helper(struct Win * win, char axis, char * sep, uint8_t size = strlen(p0) + strlen(p1) + strlen(p2) + strlen(sep) + strlen(p4) + strlen(sep) + strlen(p6) +strlen(value_prefix) + strlen(p8) + strlen(p9) + strlen(p10) + strlen(p11) - + strlen(newlines); + + strlen(newlines) + 1; char * msg = try_malloc(size, __func__); sprintf(msg, "%s%s%s%s%s%s%s%s%s%s%s%s%s", p0, p1, p2, sep, p4, sep, p6, value_prefix, p8, p9, p10, p11, newlines); -- 2.30.2