Typo in grid_duplicate_lines (sy for dy) causing it to write into the wrong

place when copying UTF-8 data. Found by Dan Colish.
pull/1/head
Nicholas Marriott 2009-07-16 07:34:37 +00:00
parent 92da443a9e
commit 924bf8477f
1 changed files with 1 additions and 1 deletions

2
grid.c
View File

@ -554,7 +554,7 @@ grid_duplicate_lines(
if (src->usize[sy] == 0)
dst->udata[dy] = NULL;
else {
dst->udata[sy] = xcalloc(
dst->udata[dy] = xcalloc(
src->usize[sy], sizeof **dst->udata);
memcpy(dst->udata[dy], src->udata[sy],
src->usize[sy] * (sizeof **dst->udata));