summaryrefslogtreecommitdiff
path: root/libslab
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-01-10 21:02:59 +0100
committerPablo Barciela <[email protected]>2018-01-10 21:02:59 +0100
commita34ea4de6c653e184bf5eeef17dd2d73a9955fb1 (patch)
treeed19461afe22f910849d37fcb0e97eb49a6fbb49 /libslab
parent173a0e7236c1ea5ea42be1ed91c11d94001e3124 (diff)
downloadmate-control-center-a34ea4de6c653e184bf5eeef17dd2d73a9955fb1.tar.bz2
mate-control-center-a34ea4de6c653e184bf5eeef17dd2d73a9955fb1.tar.xz
libslab: search-entry.c: Fix build warning:
‘__builtin___snprintf_chk’ output truncated before the last format character
Diffstat (limited to 'libslab')
-rw-r--r--libslab/search-entry.c2
1 files changed, 1 insertions, 1 deletions
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 = &gtk_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);