From: nu774 Date: Tue, 29 Oct 2013 10:32:54 +0000 (+0900) Subject: fix warning: cast size_t as sprintf() arg to int X-Git-Tag: v0.4.2~8 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=6709cf694c2bdab475488397196520d9cc274dd8;p=fdkaac.git fix warning: cast size_t as sprintf() arg to int --- diff --git a/src/main.c b/src/main.c index 5fe46ad..0d07690 100644 --- a/src/main.c +++ b/src/main.c @@ -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; }