]> iEval git - fdkaac.git/commitdiff
fix warning: cast size_t as sprintf() arg to int
authornu774 <honeycomb77@gmail.com>
Tue, 29 Oct 2013 10:32:54 +0000 (19:32 +0900)
committernu774 <honeycomb77@gmail.com>
Tue, 29 Oct 2013 10:36:22 +0000 (19:36 +0900)
src/main.c

index 5fe46adb791cb5d65dfdeb4266e493d8ab4bbccd..0d076907631df6f8b76c5589350594120db7988e 100644 (file)
@@ -607,7 +607,7 @@ char *generate_output_filename(const char *filename, const char *ext)
         const char *ext_org = strrchr(base, '.');
         if (ext_org) ilen = ext_org - base;
         p = malloc(ilen + ext_len + 1);
-        sprintf(p, "%.*s%s", ilen, base, ext);
+        sprintf(p, "%.*s%s", (int)ilen, base, ext);
     }
     return p;
 }
This page took 0.022728 seconds and 4 git commands to generate.