--- mpg321-0.3.1-orig/mpg321.c +++ mpg321-0.3.1-format-security/mpg321.c @@ -183,7 +183,7 @@ void *read_keyb(void *ptr) else{ #endif if(!(options.opt & MPG321_ENABLE_BUFFER)) - fprintf(stdout,"Volume: %ld%% \r",volume); + fprintf(stdout,"Volume: %d%% \r",volume); #ifdef HAVE_ALSA } #endif @@ -233,7 +233,7 @@ void *read_keyb(void *ptr) else{ #endif if(!(options.opt & MPG321_ENABLE_BUFFER)) - fprintf(stdout,"Volume: %ld%% \r",volume); + fprintf(stdout,"Volume: %d%% \r",volume); #ifdef HAVE_ALSA } #endif @@ -447,7 +447,7 @@ static int show_id3(struct id3_tag const { if(!names[i]) { - printf(emptystring); + printf("%s", emptystring); } else @@ -465,7 +465,7 @@ static int show_id3(struct id3_tag const for (i=0; i<=5; i++) { fprintf (stderr, "%s", info_id3[i].name); if (!names[i]) { - fprintf (stderr, emptystring); + fprintf (stderr, "%s", emptystring); } else { fprintf (stderr, "%s", names[i]); free (names[i]);