aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dispnew.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dispnew.c b/src/dispnew.c
index f1df96d75a6..0a9ce116ebb 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -1971,7 +1971,7 @@ restore_current_matrix (struct frame *f, struct glyph_matrix *saved)
1971 memcpy (to->glyphs[TEXT_AREA], from->glyphs[TEXT_AREA], nbytes); 1971 memcpy (to->glyphs[TEXT_AREA], from->glyphs[TEXT_AREA], nbytes);
1972 to->used[TEXT_AREA] = from->used[TEXT_AREA]; 1972 to->used[TEXT_AREA] = from->used[TEXT_AREA];
1973 xfree (from->glyphs[TEXT_AREA]); 1973 xfree (from->glyphs[TEXT_AREA]);
1974 nbytes = from->used[LEFT_MARGIN_AREA]; 1974 nbytes = from->used[LEFT_MARGIN_AREA] * sizeof (struct glyph);
1975 if (nbytes) 1975 if (nbytes)
1976 { 1976 {
1977 memcpy (to->glyphs[LEFT_MARGIN_AREA], 1977 memcpy (to->glyphs[LEFT_MARGIN_AREA],
@@ -1981,7 +1981,7 @@ restore_current_matrix (struct frame *f, struct glyph_matrix *saved)
1981 } 1981 }
1982 else 1982 else
1983 to->used[LEFT_MARGIN_AREA] = 0; 1983 to->used[LEFT_MARGIN_AREA] = 0;
1984 nbytes = from->used[RIGHT_MARGIN_AREA]; 1984 nbytes = from->used[RIGHT_MARGIN_AREA] * sizeof (struct glyph);
1985 if (nbytes) 1985 if (nbytes)
1986 { 1986 {
1987 memcpy (to->glyphs[RIGHT_MARGIN_AREA], 1987 memcpy (to->glyphs[RIGHT_MARGIN_AREA],