X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=ui%2Fncurses%2Fnc-scr.c;h=a02627bae946b761b78484c40fd306022aaed63d;hp=9ad356fa179e17ae60300540210831eca55c3a3f;hb=7946d9b12cec7b49334fc0db6bc23087f2cea8ad;hpb=8f36cfac8a6cbb9a2750824b704b3cc4b9db5c49 diff --git a/ui/ncurses/nc-scr.c b/ui/ncurses/nc-scr.c index 9ad356f..a02627b 100644 --- a/ui/ncurses/nc-scr.c +++ b/ui/ncurses/nc-scr.c @@ -16,9 +16,9 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#if defined(HAVE_CONFIG_H) #include "config.h" - -#define _GNU_SOURCE +#endif #include #include @@ -36,8 +36,8 @@ static void nc_scr_status_clear(struct nc_scr *scr) static void nc_scr_status_draw(struct nc_scr *scr) { - mvwaddstr(scr->main_ncw, LINES - nc_scr_pos_status, 1, - scr->frame.status); + mvwaddnstr(scr->main_ncw, LINES - nc_scr_pos_status, 1, + scr->frame.status, COLS); } int nc_scr_post(struct nc_scr *scr)