1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-04 02:51:31 -08:00

* dispnew.c (preserve_other_columns): Remember to multiply the

size argument to bcopy by the size of a glyph.
This commit is contained in:
Jim Blandy 1993-05-20 23:30:21 +00:00
parent 8a9311d707
commit aec9f5f6dc

View file

@ -747,7 +747,8 @@ preserve_other_columns (w)
int len;
bcopy (current_frame->glyphs[vpos],
desired_frame->glyphs[vpos], start);
desired_frame->glyphs[vpos],
start * sizeof (current_frame->glyphs[vpos]));
len = min (start, current_frame->used[vpos]);
if (desired_frame->used[vpos] < len)
desired_frame->used[vpos] = len;
@ -760,7 +761,8 @@ preserve_other_columns (w)
= SPACEGLYPH;
bcopy (current_frame->glyphs[vpos] + end,
desired_frame->glyphs[vpos] + end,
current_frame->used[vpos] - end);
((current_frame->used[vpos] - end)
* sizeof (current_frame->glyphs[vpos])));
desired_frame->used[vpos] = current_frame->used[vpos];
}
}