aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1994-09-18 18:57:22 +0000
committerRichard M. Stallman1994-09-18 18:57:22 +0000
commit4b34bd8180f242e8a9e43ec2dc56c080043cff3c (patch)
tree63620ca8ddde1282747902cf30a940b51a234565 /src
parent619a9b1e832f414637a4cf334319e2bfd2653b8e (diff)
downloademacs-4b34bd8180f242e8a9e43ec2dc56c080043cff3c.tar.gz
emacs-4b34bd8180f242e8a9e43ec2dc56c080043cff3c.zip
(preserve_other_columns): Fix arg to sizeof in bcopy call.
Diffstat (limited to 'src')
-rw-r--r--src/dispnew.c8
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)
851 851
852 bcopy (current_frame->glyphs[vpos], 852 bcopy (current_frame->glyphs[vpos],
853 desired_frame->glyphs[vpos], 853 desired_frame->glyphs[vpos],
854 start * sizeof (current_frame->glyphs[vpos])); 854 start * sizeof (current_frame->glyphs[vpos][0]));
855 bcopy (current_frame->charstarts[vpos], 855 bcopy (current_frame->charstarts[vpos],
856 desired_frame->charstarts[vpos], 856 desired_frame->charstarts[vpos],
857 start * sizeof (current_frame->charstarts[vpos])); 857 start * sizeof (current_frame->charstarts[vpos][0]));
858 len = min (start, current_frame->used[vpos]); 858 len = min (start, current_frame->used[vpos]);
859 if (desired_frame->used[vpos] < len) 859 if (desired_frame->used[vpos] < len)
860 desired_frame->used[vpos] = len; 860 desired_frame->used[vpos] = len;
@@ -871,11 +871,11 @@ preserve_other_columns (w)
871 bcopy (current_frame->glyphs[vpos] + end, 871 bcopy (current_frame->glyphs[vpos] + end,
872 desired_frame->glyphs[vpos] + end, 872 desired_frame->glyphs[vpos] + end,
873 ((current_frame->used[vpos] - end) 873 ((current_frame->used[vpos] - end)
874 * sizeof (current_frame->glyphs[vpos]))); 874 * sizeof (current_frame->glyphs[vpos][0])));
875 bcopy (current_frame->charstarts[vpos] + end, 875 bcopy (current_frame->charstarts[vpos] + end,
876 desired_frame->charstarts[vpos] + end, 876 desired_frame->charstarts[vpos] + end,
877 ((current_frame->used[vpos] - end) 877 ((current_frame->used[vpos] - end)
878 * sizeof (current_frame->charstarts[vpos]))); 878 * sizeof (current_frame->charstarts[vpos][0])));
879 desired_frame->used[vpos] = current_frame->used[vpos]; 879 desired_frame->used[vpos] = current_frame->used[vpos];
880 } 880 }
881 } 881 }