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 /gtk/gtkxembed.c | |
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.
Diffstat (limited to 'gtk/gtkxembed.c')
-rw-r--r-- | gtk/gtkxembed.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } } |