From a34ea4de6c653e184bf5eeef17dd2d73a9955fb1 Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Wed, 10 Jan 2018 21:02:59 +0100 Subject: libslab: search-entry.c: Fix build warning: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ‘__builtin___snprintf_chk’ output truncated before the last format character --- libslab/search-entry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libslab/search-entry.c') diff --git a/libslab/search-entry.c b/libslab/search-entry.c index 2fd3ae64..4e843ca4 100644 --- a/libslab/search-entry.c +++ b/libslab/search-entry.c @@ -99,7 +99,7 @@ nld_search_entry_realize (GtkWidget * widget) priv->height = height - 2; gdkcolor = >k_widget_get_style (widget)->fg[gtk_widget_get_state (widget)]; - snprintf (color, 6, "%02x%02x%02x", gdkcolor->red >> 8, gdkcolor->green >> 8, + snprintf (color, 7, "%02x%02x%02x", gdkcolor->red >> 8, gdkcolor->green >> 8, gdkcolor->blue >> 8); svg = g_strdup_printf (SEARCH_ENTRY_WATERMARK_SVG, color, color); -- cgit v1.2.1