From c61bc6784b45b50773bc0e1d1f83b09aed58ede6 Mon Sep 17 00:00:00 2001 From: Matthew Brush Date: Wed, 20 Dec 2017 18:46:52 -0800 Subject: [PATCH] Work around a `-Wformat-overflow` warning Requires -O3 optimization level to trigger the warning. Discussed in and fixes #1683 --- src/build.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/build.c b/src/build.c index f68e7b70e..63d3096ad 100644 --- a/src/build.c +++ b/src/build.c @@ -2256,7 +2256,7 @@ static void build_load_menu_grp(GKeyFile *config, GeanyBuildCommand **dst, gint gsize prefixlen; /* NOTE prefixlen used in macros above */ GeanyBuildCommand *dstcmd; gchar *key; - static gchar cmdbuf[3] = " "; + static gchar cmdbuf[4] = " "; if (*dst == NULL) *dst = g_new0(GeanyBuildCommand, build_groups_count[grp]); -- 2.11.4.GIT