# HG changeset patch # User Richard M. Stallman # Date 779914642 0 # Node ID 066fab036ab50e02a8103afdb49b272567d4a24f # Parent 1503c999456b78e94fa282580e0f61e9967cd60a (preserve_other_columns): Fix arg to sizeof in bcopy call. diff -r 1503c999456b -r 066fab036ab5 src/dispnew.c --- a/src/dispnew.c Sun Sep 18 18:43:33 1994 +0000 +++ b/src/dispnew.c Sun Sep 18 18:57:22 1994 +0000 @@ -851,10 +851,10 @@ bcopy (current_frame->glyphs[vpos], desired_frame->glyphs[vpos], - start * sizeof (current_frame->glyphs[vpos])); + start * sizeof (current_frame->glyphs[vpos][0])); bcopy (current_frame->charstarts[vpos], desired_frame->charstarts[vpos], - start * sizeof (current_frame->charstarts[vpos])); + start * sizeof (current_frame->charstarts[vpos][0])); len = min (start, current_frame->used[vpos]); if (desired_frame->used[vpos] < len) desired_frame->used[vpos] = len; @@ -871,11 +871,11 @@ bcopy (current_frame->glyphs[vpos] + end, desired_frame->glyphs[vpos] + end, ((current_frame->used[vpos] - end) - * sizeof (current_frame->glyphs[vpos]))); + * sizeof (current_frame->glyphs[vpos][0]))); bcopy (current_frame->charstarts[vpos] + end, desired_frame->charstarts[vpos] + end, ((current_frame->used[vpos] - end) - * sizeof (current_frame->charstarts[vpos]))); + * sizeof (current_frame->charstarts[vpos][0]))); desired_frame->used[vpos] = current_frame->used[vpos]; } }