flac: Fix inlining failure warning

Also remove related, but old and irrelevant comment.
This commit is contained in:
Erik de Castro Lopo 2015-07-04 11:51:22 +10:00
parent d9aa331ce4
commit ccb5a4debd

View File

@ -2203,10 +2203,11 @@ const char *get_decoded_outfilename(const char *infilename)
const char *get_outfilename(const char *infilename, const char *suffix)
{
if(0 == option_values.cmdline_forced_outfilename) {
static char buffer[4096]; /* @@@ bad MAGIC NUMBER */
static char buffer[4096];
if(0 == strcmp(infilename, "-") || option_values.force_to_stdout) {
safe_strncpy(buffer, "-", sizeof(buffer));
buffer [0] = '-';
buffer [1] = 0;
}
else {
char *p;