Line
Link Here
|
0 |
-- mpg321-0.3.1-orig/mpg321.c |
0 |
++ mpg321-0.3.1-format-security/mpg321.c |
Lines 183-189
void *read_keyb(void *ptr)
Link Here
|
183 |
else{ |
183 |
else{ |
184 |
#endif |
184 |
#endif |
185 |
if(!(options.opt & MPG321_ENABLE_BUFFER)) |
185 |
if(!(options.opt & MPG321_ENABLE_BUFFER)) |
186 |
fprintf(stdout,"Volume: %ld%% \r",volume); |
186 |
fprintf(stdout,"Volume: %d%% \r",volume); |
187 |
#ifdef HAVE_ALSA |
187 |
#ifdef HAVE_ALSA |
188 |
} |
188 |
} |
189 |
#endif |
189 |
#endif |
Lines 233-239
void *read_keyb(void *ptr)
Link Here
|
233 |
else{ |
233 |
else{ |
234 |
#endif |
234 |
#endif |
235 |
if(!(options.opt & MPG321_ENABLE_BUFFER)) |
235 |
if(!(options.opt & MPG321_ENABLE_BUFFER)) |
236 |
fprintf(stdout,"Volume: %ld%% \r",volume); |
236 |
fprintf(stdout,"Volume: %d%% \r",volume); |
237 |
#ifdef HAVE_ALSA |
237 |
#ifdef HAVE_ALSA |
238 |
} |
238 |
} |
239 |
#endif |
239 |
#endif |
Lines 447-453
static int show_id3(struct id3_tag const
Link Here
|
447 |
{ |
447 |
{ |
448 |
if(!names[i]) |
448 |
if(!names[i]) |
449 |
{ |
449 |
{ |
450 |
printf(emptystring); |
450 |
printf("%s", emptystring); |
451 |
} |
451 |
} |
452 |
|
452 |
|
453 |
else |
453 |
else |
Lines 465-471
static int show_id3(struct id3_tag const
Link Here
|
465 |
for (i=0; i<=5; i++) { |
465 |
for (i=0; i<=5; i++) { |
466 |
fprintf (stderr, "%s", info_id3[i].name); |
466 |
fprintf (stderr, "%s", info_id3[i].name); |
467 |
if (!names[i]) { |
467 |
if (!names[i]) { |
468 |
fprintf (stderr, emptystring); |
468 |
fprintf (stderr, "%s", emptystring); |
469 |
} else { |
469 |
} else { |
470 |
fprintf (stderr, "%s", names[i]); |
470 |
fprintf (stderr, "%s", names[i]); |
471 |
free (names[i]); |
471 |
free (names[i]); |