$OpenBSD: patch-panel_misc_c,v 1.3 2021/02/20 18:23:13 landry Exp $

use g_snprintf instead of g_sprintf

Index: panel/misc.c
--- panel/misc.c.orig
+++ panel/misc.c
@@ -697,7 +697,7 @@ gchar *
 gdk_color_to_RRGGBB(GdkColor *color)
 {
     static gchar str[10]; // #RRGGBB + \0
-    g_sprintf(str, "#%02x%02x%02x",
+    g_snprintf(str, sizeof(str), "#%02x%02x%02x",
         color->red >> 8, color->green >> 8, color->blue >> 8);
     return str;
 }
