mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2025-02-09 05:47:24 +00:00
anothe useless sizeof(char)
Originally committed as revision 5555 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
3f6d6af66e
commit
f2508b1712
@ -1369,7 +1369,7 @@ int av_tempfile(char *prefix, char **filename) {
|
||||
*filename = tempnam(".", prefix);
|
||||
#else
|
||||
size_t len = strlen(prefix) + 12; /* room for "/tmp/" and "XXXXXX\0" */
|
||||
*filename = av_malloc(len * sizeof(char));
|
||||
*filename = av_malloc(len);
|
||||
#endif
|
||||
/* -----common section-----*/
|
||||
if (*filename == NULL) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user