mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-23 08:33:17 +01:00
Fix bad size in memcpy from Romain Francoise.
This commit is contained in:
parent
589b4b8c6a
commit
596e9d8068
2
window.c
2
window.c
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user