add Berkeley specific header
[unix-history] / usr / src / lib / libcurses / clrtobot.c
index 373d180..c8ab0e8 100644 (file)
@@ -5,7 +5,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)clrtobot.c 5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)clrtobot.c 5.2 (Berkeley) %G%";
 #endif not lint
 
 # include      "curses.ext"
 #endif not lint
 
 # include      "curses.ext"
@@ -33,7 +33,7 @@ reg WINDOW    *win; {
                                *sp = ' ';
                        }
                if (minx != _NOCHANGE)
                                *sp = ' ';
                        }
                if (minx != _NOCHANGE)
-                       touchline(win, y, minx, maxx - &win->_y[y][startx]);
+                       touchline(win, y, minx, maxx - &win->_y[y][0]);
                startx = 0;
        }
 }
                startx = 0;
        }
 }