From ce4236ef78f6a434852b209aace313ffa26e25db Mon Sep 17 00:00:00 2001 From: William McBrine Date: Thu, 21 Jun 2007 05:41:56 +0000 Subject: [PATCH] Already set startpos, might as well use it. --- pdcurses/border.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pdcurses/border.c b/pdcurses/border.c index 06732e16..309cfbb0 100644 --- a/pdcurses/border.c +++ b/pdcurses/border.c @@ -13,7 +13,7 @@ #include -RCSID("$Id: border.c,v 1.49 2007/06/21 04:51:29 wmcbrine Exp $") +RCSID("$Id: border.c,v 1.50 2007/06/21 05:41:56 wmcbrine Exp $") /*man-start************************************************************** @@ -215,7 +215,7 @@ int whline(WINDOW *win, chtype ch, int n) return ERR; startpos = win->_curx; - endpos = min(win->_curx + n, win->_maxx) - 1; + endpos = min(startpos + n, win->_maxx) - 1; dest = win->_y[win->_cury]; ch = _attr_passthru(win, ch ? ch : ACS_HLINE);