diff options
author | Richard M. Stallman <rms@gnu.org> | 1994-09-18 18:57:22 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1994-09-18 18:57:22 +0000 |
commit | 2b2b987a8bcc91339b1e1cd8fd49a82145c60469 (patch) | |
tree | f8d7d4c743b1e375e8957fae57765a5c7d2192ae /src/dispnew.c | |
parent | 59b12253ceaba06b2c56ed67986565763f6f8227 (diff) | |
download | emacs-2b2b987a8bcc91339b1e1cd8fd49a82145c60469.tar.gz |
(preserve_other_columns): Fix arg to sizeof in bcopy call.
Diffstat (limited to 'src/dispnew.c')
-rw-r--r-- | src/dispnew.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dispnew.c b/src/dispnew.c index 69db3f77b3c..9922574920a 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -851,10 +851,10 @@ preserve_other_columns (w) 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 @@ preserve_other_columns (w) 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]; } } |