diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2012-10-25 11:14:47 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2012-10-25 11:14:47 +0000 |
commit | 1d40e874919b59912a0eac05e90b0e245ecd04d8 (patch) | |
tree | f9d8945b762c9a2939f8719c7117485ea37e17a3 /usr.bin | |
parent | 724557e26a6271c336c2cf5360449341b2153f3f (diff) |
Fix bad size in memcpy from Romain Francoise.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/tmux/window.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/window.c b/usr.bin/tmux/window.c index 30fb328b542..da93a4134e7 100644 --- a/usr.bin/tmux/window.c +++ b/usr.bin/tmux/window.c @@ -1,4 +1,4 @@ -/* $OpenBSD: window.c,v 1.84 2012/08/21 10:00:33 nicm Exp $ */ +/* $OpenBSD: window.c,v 1.85 2012/10/25 11:14:46 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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"); |