Fix bad size in memcpy from Romain Francoise.

This commit is contained in:
Nicholas Marriott 2012-10-25 11:14:46 +00:00
parent 589b4b8c6a
commit 596e9d8068

View File

@ -1193,7 +1193,7 @@ winlink_clear_flags(struct winlink *wl)
void
window_mode_attrs(struct grid_cell *gc, struct options *oo)
{
memcpy(gc, &grid_default_cell, sizeof gc);
memcpy(gc, &grid_default_cell, sizeof *gc);
colour_set_fg(gc, options_get_number(oo, "mode-fg"));
colour_set_bg(gc, options_get_number(oo, "mode-bg"));
gc->attr |= options_get_number(oo, "mode-attr");