mirror of
https://github.com/tmux/tmux.git
synced 2025-01-15 05:09:04 +00: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
|
void
|
||||||
window_mode_attrs(struct grid_cell *gc, struct options *oo)
|
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_fg(gc, options_get_number(oo, "mode-fg"));
|
||||||
colour_set_bg(gc, options_get_number(oo, "mode-bg"));
|
colour_set_bg(gc, options_get_number(oo, "mode-bg"));
|
||||||
gc->attr |= options_get_number(oo, "mode-attr");
|
gc->attr |= options_get_number(oo, "mode-attr");
|
||||||
|
Loading…
Reference in New Issue
Block a user