chiark / gitweb /
*** empty log message ***
[sympathy.git] / src / crt.c
index 36011a986ba710cd936159e404f3987b9dc101d8..7b8e7ddfbad2dcc7fa18cc685e6513ce696b3bf2 100644 (file)
--- a/src/crt.c
+++ b/src/crt.c
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$";
 
 /*
  * $Log$
+ * Revision 1.4  2008/02/05 01:11:46  james
+ * *** empty log message ***
+ *
  * Revision 1.3  2008/02/04 20:23:55  james
  * *** empty log message ***
  *
@@ -100,12 +103,13 @@ crt_scroll_down (CRT * c, CRT_Pos s, CRT_Pos e,int ea)
   l *= sizeof (CRT_CA);
 
   n = e.y - s.y;
+  n++;
 
   p = CRT_ADDR_POS (&e);
 
   while (n--)
     {
-      memcpy (&c->screen[p], &c->screen[p + CRT_COLS], l);
+      memcpy (&c->screen[p],&c->screen[p-CRT_COLS], l);
       p -= CRT_COLS;
     }