mirror of
https://github.com/nu774/fdkaac.git
synced 2025-03-13 23:40:11 +01:00
fix warning: cast size_t as sprintf() arg to int
This commit is contained in:
parent
7259767b09
commit
6709cf694c
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user