summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2006-04-03 04:50:18 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2006-04-03 04:50:18 +0000
commit8f95967b766c6c9c1e16da512302959e3fab96b1 (patch)
treef0ac522d93406c59237a358dab7e11a574b270d1
parent5cc8fbf8fe7ac9f855bcb3b03eecbe1926ba441d (diff)
downloadgtk+-8f95967b766c6c9c1e16da512302959e3fab96b1.tar.gz
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.
-rw-r--r--ChangeLog3
-rw-r--r--ChangeLog.pre-2-103
-rw-r--r--gtk/gtkxembed.c4
3 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 2b199ff9b4..dd30644286 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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)
diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index 2b199ff9b4..dd30644286 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -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)
diff --git a/gtk/gtkxembed.c b/gtk/gtkxembed.c
index d4718b0ad9..723ed93cd1 100644
--- a/gtk/gtkxembed.c
+++ b/gtk/gtkxembed.c
@@ -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;
}
}