Skip to content

Commit

Permalink
Merge pull request #2821 from lemenkov/format_security
Browse files Browse the repository at this point in the history
Fix -Werror=format-security
  • Loading branch information
bogdan-iancu committed May 4, 2022
2 parents 9d5dd95 + 38242d6 commit 47bfb3e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions menuconfig/curses.c
Expand Up @@ -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));
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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));
}

Expand Down Expand Up @@ -341,4 +341,4 @@ int draw_item_list(select_menu *menu)
}

return 0;
}
}

0 comments on commit 47bfb3e

Please sign in to comment.