changeset 2930:839f3d132ee0

* dispnew.c (preserve_other_columns): Remember to multiply the size argument to bcopy by the size of a glyph.
author Jim Blandy <jimb@redhat.com>
date Thu, 20 May 1993 23:30:21 +0000
parents f3c44426bed2
children 9e3e5a08c219
files src/dispnew.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/dispnew.c	Thu May 20 23:15:17 1993 +0000
+++ b/src/dispnew.c	Thu May 20 23:30:21 1993 +0000
@@ -747,7 +747,8 @@
 	      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 @@
 		  = 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];
 	    }
 	}