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.
This commit is contained in:

committed by
Matthias Clasen

parent
5cc8fbf8fe
commit
8f95967b76
@ -1,5 +1,8 @@
|
||||
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)
|
||||
|
@ -1,5 +1,8 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user