Sync OpenBSD patchset 239:

Use the right source and destination lines in grid_duplicate_lines.
pull/1/head
Tiago Cunha 2009-08-10 21:40:21 +00:00
parent 7bcd7c2752
commit e8ea3ccd58
1 changed files with 3 additions and 3 deletions

6
grid.c
View File

@ -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) {