flac: Fix inlining failure warning
authorErik de Castro Lopo <erikd@mega-nerd.com>
Sat, 4 Jul 2015 01:51:22 +0000 (11:51 +1000)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Sat, 4 Jul 2015 01:51:33 +0000 (11:51 +1000)
Also remove related, but old and irrelevant comment.

src/flac/main.c

index 19204c5..f8625af 100644 (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;