From: Christian Heller Date: Sun, 18 Jan 2015 01:46:03 +0000 (+0100) Subject: Client: Fix too small memory allocation for window config view. X-Git-Tag: tce~555 X-Git-Url: https://plomlompom.com/repos/te"st.html?a=commitdiff_plain;h=c1c88f66166ed26d0bd346570c37f006e3c8364b;p=plomrogue Client: Fix too small memory allocation for window config view. --- 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);