Fix build with -Wformat -Werror=format-security. Patch-Source: https://sources.debian.org/patches/cdw/0.8.1-2/02-correct-string-literal.patch --- cdw-0.8.1.orig/src/user_interface/cdw_main_window.c +++ cdw-0.8.1/src/user_interface/cdw_main_window.c @@ -615,7 +615,7 @@ void cdw_main_window_disc_info_view_disp return; } else { if (disc->state_empty == CDW_TRUE) { - mvwprintw(cdw_ui.disc_info_view.subwindow, row_h, pcol, disc->type_label); + mvwprintw(cdw_ui.disc_info_view.subwindow, row_h, pcol, "%s", disc->type_label); } else { mvwprintw(cdw_ui.disc_info_view.subwindow, row_h, pcol, /* 2TRANS: this is string displaying information --- cdw-0.8.1.orig/src/user_interface/cdw_window.c +++ cdw-0.8.1/src/user_interface/cdw_window.c @@ -324,7 +324,7 @@ int cdw_window_print_message(WINDOW *win cdw_vdm ("ERROR: can't produce wrapped string\n"); return -1; } - mvwprintw(window, 0, 0, string); + mvwprintw(window, 0, 0, "%s", string); free(string); string = (char *) NULL; --- cdw-0.8.1.orig/src/user_interface/widgets/cdw_dropdown.c +++ cdw-0.8.1/src/user_interface/widgets/cdw_dropdown.c @@ -704,7 +704,7 @@ void cdw_dropdown_display_current_item_r mvwprintw(dropdown->parent, dropdown->begin_y, dropdown->begin_x + dropdown->width - 1, "]"); /* 'real' content */ - mvwprintw(dropdown->parent, dropdown->begin_y, dropdown->begin_x + 1, dropdown->items[dropdown->current_item_ind]->label); + mvwprintw(dropdown->parent, dropdown->begin_y, dropdown->begin_x + 1, "%s", dropdown->items[dropdown->current_item_ind]->label); /* and now fancy, bolded arrow by the dropdown */ if (reverse) {