fix compiler warnings
authorJosh Coalson <jcoalson@users.sourceforce.net>
Thu, 9 Aug 2007 07:17:32 +0000 (07:17 +0000)
committerJosh Coalson <jcoalson@users.sourceforce.net>
Thu, 9 Aug 2007 07:17:32 +0000 (07:17 +0000)
src/flac/main.c

index 250ae1e..06a61c2 100644 (file)
@@ -1800,7 +1800,7 @@ int encode_file(const char *infilename, FLAC__bool is_first_file, FLAC__bool is_
        if(encode_infile != stdin && grabbag__file_are_same(infilename, outfilename)) {
                static const char *tmp_suffix = ".tmp,fl-ac+en'c";
                /*@@@@ still a remote possibility that a file with this filename exists */
-               if(0 == (internal_outfilename = malloc(strlen(outfilename)+strlen(tmp_suffix)+1))) {
+               if(0 == (internal_outfilename = (char *)malloc(strlen(outfilename)+strlen(tmp_suffix)+1))) {
                        flac__utils_printf(stderr, 1, "ERROR allocating memory for tempfile name\n");
                        conditional_fclose(encode_infile);
                        return 1;