* src/pgtkselect.c (pgtk_get_window_property): Add 1 to xdata
when it is GdkAtom.
* src/pgtkterm.c (drag_leave): Initialize inev.ie.
eassert (actual_format == 32);
length = length / sizeof (GdkAtom);
- xdata = xmalloc (sizeof (GdkAtom) * length);
+ xdata = xmalloc (sizeof (GdkAtom) * length + 1);
memcpy (xdata, data, 1 + length * sizeof (GdkAtom));
g_free (data);
g_object_unref);
}
+ EVENT_INIT (inev.ie);
+
inev.ie.kind = DRAG_N_DROP_EVENT;
inev.ie.modifiers = 0;
inev.ie.arg = Qnil;