Commit 8f95967b authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Reduce size of static buffer.

2006-04-03  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkxembed.c (_gtk_xembed_message_name): Reduce size of static
	buffer.
parent 5cc8fbf8
2006-04-03 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkxembed.c (_gtk_xembed_message_name): Reduce size of static
buffer.
* gtk/gtktext.c (gtk_text_key_press): Avoid relocations.
* gtk/gtkrc.c (gtk_rc_add_initial_default_files)
......
2006-04-03 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkxembed.c (_gtk_xembed_message_name): Reduce size of static
buffer.
* gtk/gtktext.c (gtk_text_key_press): Avoid relocations.
* gtk/gtkrc.c (gtk_rc_add_initial_default_files)
......
......@@ -215,7 +215,7 @@ _gtk_xembed_send_focus_message (GdkWindow *recipient,
const char *
_gtk_xembed_message_name (XEmbedMessageType message)
{
static char unk[100];
static char unk[24];
switch (message)
{
......@@ -236,7 +236,7 @@ _gtk_xembed_message_name (XEmbedMessageType message)
CASE (GTK_UNGRAB_KEY);
#undef CASE
default:
sprintf (unk, "UNKNOWN(%d)", message);
snprintf (unk, 24, "UNKNOWN(%d)", message);
return unk;
}
}
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