[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#997186: nast: FTBFS: ncurses/n_nast.c:686:46: error: format not a string literal and no format arguments [-Werror=format-security]



Source: nast
Version: 0.2.0-8
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> gcc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -c ncurses/n_nast.c -o ncurses/n_nast.o
> ncurses/n_nast.c: In function ‘title’:
> ncurses/n_nast.c:686:46: error: format not a string literal and no format arguments [-Werror=format-security]
>   686 |    mvwprintw(title,1,(COLS-sizeof(TITLE))/2, TITLE);
>       |                                              ^~~~~
> ncurses/n_nast.c: In function ‘pop_up_win’:
> ncurses/n_nast.c:793:48: error: format not a string literal and no format arguments [-Werror=format-security]
>   793 |    mvwprintw(pop_up,0,(55 -strlen(message))/2, message);
>       |                                                ^~~~~~~
> ncurses/n_nast.c: In function ‘help_win’:
> ncurses/n_nast.c:804:46: error: format not a string literal and no format arguments [-Werror=format-security]
>   804 |    mvwprintw(help,0,(67 -strlen(message))/2, message);
>       |                                              ^~~~~~~
> cc1: some warnings being treated as errors
> make[1]: *** [Makefile:37: ncurses/n_nast.o] Error 1


The full build log is available from:
http://qa-logs.debian.net/2021/10/23/nast_0.2.0-8_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.


Reply to: