Fixes "format not a string literal and no format arguments
[-Werror=format-security]" errors.
Patch from Fabian Greffrath <fabian+debian@greffrath.com> via Debian.
Closes Debian bug #643377.
const char *usage = "usage: test_cuesheet cuesheet_file lead_out_offset [ [ sample_rate ] cdda ]\n";
if(argc > 1 && 0 == strcmp(argv[1], "-h")) {
const char *usage = "usage: test_cuesheet cuesheet_file lead_out_offset [ [ sample_rate ] cdda ]\n";
if(argc > 1 && 0 == strcmp(argv[1], "-h")) {
return 0;
}
if(argc < 3 || argc > 5) {
return 0;
}
if(argc < 3 || argc > 5) {
- fprintf(stderr, usage);
+ fprintf(stderr, "%s", usage);
if(0 == strcmp(argv[4], "cdda"))
is_cdda = true;
else {
if(0 == strcmp(argv[4], "cdda"))
is_cdda = true;
else {
- fprintf(stderr, usage);
+ fprintf(stderr, "%s", usage);
const char *usage = "usage: test_pictures path_prefix\n";
if(argc > 1 && 0 == strcmp(argv[1], "-h")) {
const char *usage = "usage: test_pictures path_prefix\n";
if(argc > 1 && 0 == strcmp(argv[1], "-h")) {
return 0;
}
if(argc != 2) {
return 0;
}
if(argc != 2) {
- fprintf(stderr, usage);
+ fprintf(stderr, "%s", usage);
static const char * const usage = "usage: test_seeking file.flac [#seeks] [#samples-in-file.flac] [file.raw]\n";
if (argc < 2 || argc > 5) {
static const char * const usage = "usage: test_seeking file.flac [#seeks] [#samples-in-file.flac] [file.raw]\n";
if (argc < 2 || argc > 5) {
- fprintf(stderr, usage);
+ fprintf(stderr, "%s", usage);