summaryrefslogtreecommitdiffstats
path: root/grid.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-08-10 21:40:21 +0000
committerTiago Cunha <tcunha@gmx.com>2009-08-10 21:40:21 +0000
commite8ea3ccd58622d141f019009ac7524fba1bd657a (patch)
tree97418a06ad53ecb53919561aa7eff88410a489cf /grid.c
parent7bcd7c27525d272767cf2034488032923570878b (diff)
Sync OpenBSD patchset 239:
Use the right source and destination lines in grid_duplicate_lines.
Diffstat (limited to 'grid.c')
-rw-r--r--grid.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/grid.c b/grid.c
index d02b304c..6b06c3b4 100644
--- a/grid.c
+++ b/grid.c
@@ -1,4 +1,4 @@
-/* $Id: grid.c,v 1.29 2009-08-09 17:28:23 tcunha Exp $ */
+/* $Id: grid.c,v 1.30 2009-08-10 21:40:21 tcunha Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -514,8 +514,8 @@ grid_duplicate_lines(
grid_clear_lines(dst, dy, ny);
for (yy = 0; yy < ny; yy++) {
- srcl = &src->linedata[yy];
- dstl = &dst->linedata[yy];
+ srcl = &src->linedata[sy];
+ dstl = &dst->linedata[dy];
memcpy(dstl, srcl, sizeof *dstl);
if (srcl->cellsize != 0) {