Kaydet (Commit) c61bc678 authored tarafından Matthew Brush's avatar Matthew Brush

Work around a `-Wformat-overflow` warning

Requires -O3 optimization level to trigger the warning.

Discussed in and fixes #1683
üst fce58626
...@@ -2256,7 +2256,7 @@ static void build_load_menu_grp(GKeyFile *config, GeanyBuildCommand **dst, gint ...@@ -2256,7 +2256,7 @@ static void build_load_menu_grp(GKeyFile *config, GeanyBuildCommand **dst, gint
gsize prefixlen; /* NOTE prefixlen used in macros above */ gsize prefixlen; /* NOTE prefixlen used in macros above */
GeanyBuildCommand *dstcmd; GeanyBuildCommand *dstcmd;
gchar *key; gchar *key;
static gchar cmdbuf[3] = " "; static gchar cmdbuf[4] = " ";
if (*dst == NULL) if (*dst == NULL)
*dst = g_new0(GeanyBuildCommand, build_groups_count[grp]); *dst = g_new0(GeanyBuildCommand, build_groups_count[grp]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment