From 1d40e874919b59912a0eac05e90b0e245ecd04d8 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 25 Oct 2012 11:14:47 +0000 Subject: Fix bad size in memcpy from Romain Francoise. --- usr.bin/tmux/window.c | 4 ++-- 1 file 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 @@ -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"); -- cgit v1.2.3