diff --git a/menuconfig/curses.c b/menuconfig/curses.c index 97ae216e17b..1a4fe08fb93 100644 --- a/menuconfig/curses.c +++ b/menuconfig/curses.c @@ -89,7 +89,7 @@ int draw_sibling_menu(select_menu *menu) /* print title in colour */ attron(COLOR_PAIR(1)); - mvprintw(HIGH_NOTICE_Y,max_x/2-20,menu->parent?menu->parent->name:"OpenSIPS Main Configuration Menu"); + mvprintw(HIGH_NOTICE_Y,max_x/2-20,"%s",menu->parent?menu->parent->name:"OpenSIPS Main Configuration Menu"); /* print footer */ print_notice(NOTICE_Y,NOTICE_X,0,"Press h for navigation help."); attroff(COLOR_PAIR(1)); @@ -205,7 +205,7 @@ int draw_item_list(select_menu *menu) /* print title in colour */ attron(COLOR_PAIR(1)); - mvprintw(HIGH_NOTICE_Y,max_x/2-20,menu->name); + mvprintw(HIGH_NOTICE_Y,max_x/2-20,"%s",menu->name); attroff(COLOR_PAIR(1)); if (should_scroll) { @@ -248,7 +248,7 @@ int draw_item_list(select_menu *menu) /* print current item description */ if (current->description) { attron(COLOR_PAIR(1)); - print_notice(NOTICE_Y,NOTICE_X,0,current->description); + print_notice(NOTICE_Y,NOTICE_X,0,"%s",current->description); attroff(COLOR_PAIR(1)); } @@ -341,4 +341,4 @@ int draw_item_list(select_menu *menu) } return 0; -} \ No newline at end of file +}