--- a/pidgin/gtksmiley.c Mon Jun 25 04:23:12 2012 -0400 +++ b/pidgin/gtksmiley.c Mon Jun 25 18:24:02 2012 -0400 @@ -724,7 +724,7 @@ { SmileyManager *dialog = user_data; gchar *name = g_strchomp((gchar *) gtk_selection_data_get_data(sd)); - + if ((gtk_selection_data_get_length(sd) >= 0) && (gtk_selection_data_get_format(sd) == 8)) { /* Well, it looks like the drag event was cool.