diff options
author | Matthias Clasen <mclasen@redhat.com> | 2006-04-03 04:50:18 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2006-04-03 04:50:18 +0000 |
commit | 8f95967b766c6c9c1e16da512302959e3fab96b1 (patch) | |
tree | f0ac522d93406c59237a358dab7e11a574b270d1 | |
parent | 5cc8fbf8fe7ac9f855bcb3b03eecbe1926ba441d (diff) | |
download | gtk+-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-- | ChangeLog | 3 | ||||
-rw-r--r-- | ChangeLog.pre-2-10 | 3 | ||||
-rw-r--r-- | gtk/gtkxembed.c | 4 |
3 files changed, 8 insertions, 2 deletions
@@ -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; } } |