fix warning: cast size_t as sprintf() arg to int

This commit is contained in:
nu774 2013-10-29 19:32:54 +09:00
parent 7259767b09
commit 6709cf694c
1 changed files with 1 additions and 1 deletions

View 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;
}